load-npm-package

0.0.31 • Public • Published

loadNpmPackage

Install a NPM package, keep the field 'files' from package.json and copy them to your directory

Install

npm install load-npm-package

Usage

It's basically a wrapper of npm install with the same parameters, then it keep files declared in package.json and put them in a directory(default : 'loadNpmPackages' ) in your project. Example: npm loadNpmPackage iterate-node

You can modify the default directory where to put the file by adding loadNpmPackage-dir=your-dir in parameters Example: npm loadNpmPackage iterate-node loadNpmPackage-dir=my-dir

Files in package.json must be valid files or glob files ( will be parsed by [https://github.com/isaacs/node-glob] ) or it will do nothing ( just install the package ).

Readme

Keywords

none

Package Sidebar

Install

npm i load-npm-package

Homepage

#

Weekly Downloads

1

Version

0.0.31

License

none

Unpacked Size

3.94 kB

Total Files

4

Last publish

Collaborators

  • simonsavage