Skip to content

Instantly share code, notes, and snippets.

View anyuruf's full-sized avatar

Francis Anyuru anyuruf

View GitHub Profile
@sahilatahar
sahilatahar / RenameJSFilesToTS.md
Last active November 3, 2025 11:31
This guide provided commands and steps to rename JavaScript and JSX files to TypeScript and TypeScript React files using PowerShell, Bash, and VS Code terminal. By following these instructions, you can efficiently migrate your project from JavaScript to TypeScript, ensuring proper file extensions and compatibility with TypeScript and TypeScript …

How to Rename JavaScript and JSX Files to TypeScript and TypeScript React Files in VS Code

When migrating a JavaScript project to TypeScript, you may need to rename your JavaScript and JSX files to TypeScript and TypeScript React files. This guide provides commands to rename .js files to .ts and .jsx files to .tsx using PowerShell in Windows, Bash in Linux/MacOS/Git Bash, and VS Code terminal.

Using Commands in VS Code Terminal:

  1. Open VS Code: Launch Visual Studio Code.

  2. Open Terminal in VS Code:

@incredimike
incredimike / variousCountryListFormats.js
Last active October 3, 2025 10:21
List of Countries in various Javascript data structures: Alphabetical country lists & Country data objects.
// Lists of countries with ISO 3166 codes, presented in various formats.
// Last Updated: July 30, 2020
// If you're using PHP, I suggest checking out:
// https://github.com/thephpleague/iso3166
// or Laravel: https://github.com/squirephp/squire
//
// JS developers can check out:
// https://www.npmjs.com/package/iso3166-2-db
//