node-package-recovery

0.1.8 • Public • Published

npr

travisci

npm package

GITHUB

Did you npm install someModule without the --save or didn't commit your new app to git and accidently removed the package.json file? This tool is used to generate a package.json file from your node_modules directory in such scenario.

[list -l --list] = list all node modules
[edit -e] = recreate the dependencies in package.json
[write -w] = write a package.npr.json file
[new -n] = write a new package.json file

Install:

Requires node version > 5

NPM

** Make sure you install with -g flag

npm install node-package-recovery -g

From source

git clone git@github.com:danbickford007/node_module_recovery.git

cd node_module_recovery

npm install

grunt

Usage :

list all modules and versions

npr list

npr -l

npr --list

create a package.npr.json file

npr write

npr -w

edit your package.json dependencies

npr edit

npr -e

create a new package.json file

npr new

npr -n

Dev

Install: grunt

Test

Run tests within tests/ directory

./../node_modules/mocha/bin/mocha .

Readme

Keywords

none

Package Sidebar

Install

npm i node-package-recovery

Weekly Downloads

2

Version

0.1.8

License

ISC

Last publish

Collaborators

  • danbickford007