2.1.1 • Published 9 years ago

jsmv v2.1.1

Weekly downloads
25
License
MIT
Repository
github
Last release
9 years ago

jsmv

Build Status npm install

replace requires across your codebase

installation

npm install -g jsmv

why

so you can do jsmv old-module.js new-module.js to replace all requires for old-module.js to new-module.js. it will even take care of making sure all of your relative paths are correct!

or even jsmv modules/my-request.js request to replace any require for modules/my-request.js with the actual request module.

usage

jsmv [options] [from] [to]

options are:

  • --from, -f <modulename> Find files that require <modulename>
  • --to, -t <modulename> Rename all matches to <modulename>
  • --require, -R <name> Look for name vs. require
  • --dir, -d <dir> Search javascript files in <dir> (default CWD)
  • --file, -F <file> Only search <file> for relevant modules
  • --recurse, -r Recurse into subdirectories
  • --force In the event of a deep-require, replace the module anyway
  • --forceFull For deep-requires, replace the whole require with [to]
  • --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

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago