requiremate
keeps your installed dependencies in sync with the require'd modules in your code.
Tired of these messages?
Error: Cannot find module 'wtf@&!#'
requiremate to the rescue! hassle free installing of your required modules.
Not sure if you have got too many dependencies in your package.json?
Want to know if the installed version are the defined ones?
Want a simple command to keep your installed and defined dependencies in sync with the required modules in your code?
to check, run:
requiremate -n
to fix it, run:
requiremate
install
install it globally, you won't regret it. it is really useful for every module you develop.
npm install -g requiremate
usage
- make sure you have got a package.json
- write your code (you don't have to do any
npm install
- before you run your code, run:
requiremate
in the root directory of your project. - done.
command line usage
command line options are handled with subarg.
# dryrun without action, only report requiremate -n # fix installs in the current directory requiremate # remove all node_modules and fix installs requiremate --remove # run with verbose logs requiremate --verbose # check installs in a neighbour project (dir option) requiremate ../my-friends-project --dryrun
example report
requiremate -n requiremate working directory /Users/andineck/Development/github/requirematestart searching
node.js usage
var requiremate = ; var options = "dryrun": true "dir": "/my/computer/my-project" "withoutDev": false "ignoreDirs": "sandbox" "dist" "bower_components" "ignore": "sandbox" "dist" "bower_components" "ignoreMatches": "ignorePackages": ;
how does it work
requiremate
follows this workfow (taken from code)
;
options
you can run requiremate
from the command line as well as from your node.js code.
available options:
- verbose (alias: n)
- dryrun
- remove
- withoutDev
- ignoreDirs
- ignoreMatches
- ignorePackages
- saveDev
- ignoreVersion
- dir
license
MIT
author
Andi Neck | @andineck | andi.neck@intesso.com