Supercharge your development process with this TypeScript playground, leveraging the benefits and advanced features of your IDE.
- Create a new directory called "console" and navigate into it:
mkdir console
cd console- Initialize a new npm project with default settings:
npm init -y- Install the necessary dependencies, including TypeScript, Nodemon, and ts-node:
npm i -D typescript nodemon ts-node @types/node- Create a new file named "main.ts":
touch main.ts- In your package.json file, add the following script under the "scripts" section:
"start": "nodemon main.ts"- Now, you're all set! Run the following command to start the console:
npm run startHere is the stackblitz ( a playground of a playground?!? 🤔 )
Happy coding! 🖖💻