Skip to content

bobbyhadz/typescript-map-through-enum

Repository files navigation

Instructions

The code is in the src/index.ts file.

To be able to run the code, follow these instructions:

  1. Open your terminal in your project's root directory (right next to package.json).
  2. Install the node modules.
npm install
  1. To run the code, issue the npm start command.
npm start

Alternatively, you can run the TypeScript project in watch mode, so that the TypeScript server is restarted every time you make a change and save.

npm run dev

The npm run dev command uses nodemon to watch for changes and restarts your TypeScript project every time you save (Ctrl + S).