Install Node modules from GitHub using
npm
under the hood.
nfg
(node from git) is a wrapper around the npm package manager to install node packages from GitHub.com
Install with npm
by executing the following command inside a terminal:
$ npm i -g nfg
Afterwards installation is completed can use nfg
to install node modules from GitHub.com by specifiying the source as username/repo
, for example
$ nfg -g kevingimbel/leetscript-cli
$ nfg lynzt/fs_readfile
The last argument is always the repository. All options like -g
are passed to npm
directly.
I'm a lazy person and I don't like to type npm install ssh+git://[email protected]/user/repo
when installing from private repositories. ๐ฌ