npm typescript version code example
Example 1: how to check typescript version
tsc --version
Example 2: install typescript using npm
npm install -g typescript
Example 3: npm package version
// How to increment your project version
Ex: 1.0.0
* npm version patch ---> 1.0.1
* npm version minor ---> 1.1.0
* npm version major ---> 2.0.0
npm version [<newversion> | major | minor | patch | premajor |
preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]
Example 4: npm typescript package
const demoMethod = () => {
return “I’m Duffer”;
}
module.exports = demoMethod;