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)
version: (1.0.0)
description: Just a simpmle npm app
entry point: (index.js)
test command:
git repository:
license: (ISC)
About to write to F:\apachefriends\xampp\htdocs\NPM\apps\simple-app\package.json:

  "name": "simple-app",
  "version": "1.0.0",
  "description": "Just a simpmle npm app",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  "author": "",
  "license": "ISC"

Is this OK? (yes)

2. Now that app is created, you can cd into it:

$ cd simple-app