read

This is a very small getting started guide for myself, when once-in-a-while I will write some node scripts.

Generate package.json

npm init

Install Dependencies Libraries

Node.js is famous for the libraries available. A few common ones are request and eyes.

npm install request --save
npm install eyes --save

I usually install them with --save argument so that the dependency is written to package.json.

When you install a library, it will be added to node_modules folder. This folder can safely be gitignored.

On a clean clone of the repos, package.json can help to install all libraries at once. Just run:

npm install

That’s all for now.


Image

@samwize

¯\_(ツ)_/¯

Back to Home