1.2.0 • Published 8 years ago

nofi v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

nofi

npm Online-First Installer

Do you switch between online/offline environments somewhat regularly?

Installation/Usage

  • npm i -g nofi
  • Replace all your npm install commands with nofi

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 foo

Flag aliases and installing multiple packages work as well...

  • nofi -S foo
  • nofi -D foo bar
  • nofi -O foo bar baz

How does it work?

  1. Test internet connection using is-online.
  2. If online, use npm install --force to install/cache the latest package.
  3. If offline, use npm install --cache-min Infinity to install from your cache (usually located in ~/.npm).
1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago