Skip to content

Instantly share code, notes, and snippets.

@Lexhoo
Created May 20, 2020 09:48
Show Gist options
  • Save Lexhoo/892f0d33b640bc43d6e8764b92638695 to your computer and use it in GitHub Desktop.
Save Lexhoo/892f0d33b640bc43d6e8764b92638695 to your computer and use it in GitHub Desktop.
Quête installation Typescript
import { cpus } from 'os'; // Import ES6 style
import chalk from 'chalk';
const os = JSON.stringify(cpus());
console.log(chalk.red(os));
{
"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"
}
}
{
"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