Coder Social home page Coder Social logo

jsmv's Introduction

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>
  • --dir, -d <dir> Search javascript files in <dir> (default CWD)
  • --file, -F <file> Only search <file> for relevant modules
  • --recurse, -r Recurse into subdirectories
  • --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

jsmv's People

Contributors

jarofghosts avatar chrisdickinson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.