The purpose of this page is to demostrate how you can create a typescript application using npm commands in nodejs.
1. To create an application use the init command in npm
$ npm init
Then you will see the following prompts
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help init` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: (simple-app)
description: Just a simpmle npm app
entry point: (index.js)
About to write to F:\apachefriends\xampp\htdocs\NPM\apps\simple-app\package.json:
"description": "Just a simpmle npm app",
"test": "echo \"Error: no test specified\" && exit 1"
Is this OK? (yes)
2. Now that app is created, you can cd into it:
$ cd simple-app