1.0.2 • Published 2 years ago

npm-pp1 v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

THis is an tutorial on working with the npm package CHALK. THis works only if node.js and npm is installed. Git Bash is prefferable as the default terminal.

Steps to install and run chalk 1) Run "npm init" enter the required details to create a package.json file 2) Add type : module to the package.json file 3) Run "npm i chalk" to install chalk 4) Create a .js file with the name entere as the "main" in package.json. 5) In that file import the chalk module by "import chalk from 'chalk'. 6) Add some commands like "console.log(chalk.red('Hi There'))". 7) For some commands visit https://github.com/chalk/chalk#readme 8) Then run the file in the terminal using the command - "node yourfilename.js" 9) Thats it ... HAve fun playing with colors.

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago