1.2.0 • Published 9 years ago
nofi v1.2.0
nofi
npm Online-First Installer
Do you switch between online/offline environments somewhat regularly?
Installation/Usage
npm i -g nofi- Replace all your
npm installcommands withnofi
Examples
✖︎ npm install
✔︎ nofi✖︎ npm install --save foo
✔︎ nofi --save foo✖︎ npm install --save-dev foo
✔︎ nofi --save-dev foo✖︎ npm install --save-optional foo
✔︎ nofi --save-optional fooFlag aliases and installing multiple packages work as well...
nofi -S foonofi -D foo barnofi -O foo bar baz
How does it work?
- Test internet connection using is-online.
- If online, use
npm install --forceto install/cache the latest package. - If offline, use
npm install --cache-min Infinityto install from your cache (usually located in~/.npm).