Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/runk/node-inst
Faster npm installs via caching whole node_module dir
https://github.com/runk/node-inst
Last synced: 2 months ago
JSON representation
Faster npm installs via caching whole node_module dir
- Host: GitHub
- URL: https://github.com/runk/node-inst
- Owner: runk
- License: mit
- Created: 2014-04-10T01:11:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T04:42:19.000Z (over 7 years ago)
- Last Synced: 2024-10-07T03:41:57.541Z (3 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-inst
=========Faster npm installs via caching whole `node_module` dir
If you do a lot of `npm i` every day you might be annoyed with its slowness. Even if you use built-in
npm cache it still compiles/rebuilds all binary dependencies. Another solutions such as caching proxies or
npm registry mirrors still consume a lot of time for networking / checking / compiling etc.This module caches *whole* `node_modules` directory and uses check sum of manifest files (*package.json*
and *npm-shrinkwrap.json*), version of *node* and *npm* as a cache key. When you're doing fresh install
it saves a tarball with all your dependencies and extract it next time when you do install. It's like
**30-50** times faster than normal install even with "warm" npm cache.## Installation
npm install inst -g
## Usage
Instead of using `npm install` you use `inst`. That's it.
$ inst --help
Usage: inst [options]
Options:
-h, --help output usage information
-V, --version output the version number
-s, --storage [path] storage path [~/.npm-inst-cache]
-t, --ttl [second] cache lifetime [86400]
-p, --production production mode, do not install dev dependencies [false]