Skip to content

danbickford007/node-package-recovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .