Node package.json
From Logic Wiki
[npmjs.com npmjs.com]
to answer questions one by one
npm init
to accept all
npm init --yes
when we install a package a dependencies object is added in package.json
npm i underscore
and to use it
var _ = require('underscore');
require check sequence
it checks modules in this order
- Core module
- File or folder
- node_modules