nppi

1.0.0 • Public • Published

Node Packages Parser Installer License

XO code style Build Status Inline docs

nppi is a tool that lets you parse files searching for their dependencies and install them. Really useful if you have downloaded a project or a file without its package.json. Super useful if you have downloaded a huge gulpfile.js from some gist.

Install

npm install nppi -g

Usage

nppi <pattern> [options]

Options

--save adds the packages to a package.json (you have to create it before, npm init)

--save-dev adds the packages to a package.json as dev-dependencies

Blacklist

Files contained in node_modules and bower_components will never be parsed.

Examples

nppi ./*.js                    # parses every .js file in the current folder
nppi ./project/**/*.jsx        # parses project folder and all folders inside it looking for .jsx files
nppi gulpfile.js --save-dev    # parses gulpfile.js file only, updates package.json
nppi **/*.js --save            # parses current folder and all folders inside it, updates package.json

Package Sidebar

Install

npm i nppi

Weekly Downloads

2

Version

1.0.0

License

MPL-2.0

Last publish

Collaborators

  • naramsim