node-modules-snapshot

2.0.0 • Public • Published

node_modules Snapshot

Tar up the node_modules directory and store it in a temp directory so it can be restored later without running npm install.

This is useful on build nodes like Jenkins to speed up builds.

Usage

$ node-modules-snapshot
No snapshot found at "/var/folders/3v/zdkckktj2194hxp_8mwytzcw0000gn/T/node-modules-snapshot/node-modules-snapshot/0cd711ab164722d7409c910c0054bb6d6fa63f3392615ef62c8964474ad202ba.tgz"
Running "npm install" in "/Users/nmalaguti/git/example/"...

Packaging up "/Users/nmalaguti/git/example/node_modules/"...

Options

-n, --dry-run: don't actually do anything, just log what would be done
--npm: the path to the npm cli to use to run npm install

Package Sidebar

Install

npm i node-modules-snapshot

Weekly Downloads

1

Version

2.0.0

License

MIT

Last publish

Collaborators

  • nmalaguti