Created
May 20, 2020 09:48
-
-
Save Lexhoo/892f0d33b640bc43d6e8764b92638695 to your computer and use it in GitHub Desktop.
Quête installation Typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { cpus } from 'os'; // Import ES6 style | |
import chalk from 'chalk'; | |
const os = JSON.stringify(cpus()); | |
console.log(chalk.red(os)); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "typebank", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"start": "ts-node index.ts", | |
"check": "gts check", | |
"clean": "gts clean", | |
"compile": "tsc", | |
"fix": "gts fix", | |
"prepare": "npm run compile", | |
"pretest": "npm run compile", | |
"posttest": "npm run check" | |
}, | |
"author": "", | |
"license": "ISC", | |
"devDependencies": { | |
"@types/node": "^13.13.8", | |
"gts": "^2.0.2", | |
"ts-node": "^8.10.1", | |
"tslint": "^6.1.2", | |
"typescript": "^3.9.2" | |
}, | |
"dependencies": { | |
"assert": "^2.0.0", | |
"chalk": "^4.0.0", | |
"tslint-config-airbnb": "^5.11.2" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "typebank", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"start": "ts-node index.ts", | |
"check": "gts check", | |
"clean": "gts clean", | |
"compile": "tsc", | |
"fix": "gts fix", | |
"prepare": "npm run compile", | |
"pretest": "npm run compile", | |
"posttest": "npm run check" | |
}, | |
"author": "", | |
"license": "ISC", | |
"devDependencies": { | |
"@types/node": "^13.13.8", | |
"gts": "^2.0.2", | |
"ts-node": "^8.10.1", | |
"tslint": "^6.1.2", | |
"typescript": "^3.9.2" | |
}, | |
"dependencies": { | |
"assert": "^2.0.0", | |
"chalk": "^4.0.0", | |
"tslint-config-airbnb": "^5.11.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment