jsmv

rename modules in js files

npm install jsmv
26 downloads in the last week
32 downloads in the last month

jsmv

Build Status

move around module names

installation

npm install -g jsmv

why

so you can do jsmv old-module.js new-module.js

or even

jsmv modules/my-request.js request

usage

jsmv [options] [from] [to]

Options are:

  • --from, -f <modulename> Find files that require <modulename>
  • --to, -t <modulename> Rename all matches to <modulename>
  • --dir, -d <dir> Search javascript files in <dir> (default CWD)
  • --file, -F <file> Only search <file> for relevant modules
  • --version, -v Print current version
  • --help, -h This thing

if --from and --to are not explicitly declared, the first two non-flag command line options will be used in their place respectively.

license

MIT

npm loves you