Skip to content

Instantly share code, notes, and snippets.

@k2052
Created June 7, 2017 20:49
Show Gist options
  • Save k2052/ff846802935706d0ba2d4b6b7b1d2534 to your computer and use it in GitHub Desktop.
Save k2052/ff846802935706d0ba2d4b6b7b1d2534 to your computer and use it in GitHub Desktop.

First list all your installed NPM modules with:

$ npm list -g --depth=0 > installNPMModules.sh

Then you could just multiline edit or regex stuff from:

├── now@5.0.0

into

npm i -g now@5.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment