Skip to content

Instantly share code, notes, and snippets.

@foucdeg
Last active August 20, 2017 19:26
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foucdeg/44d16a729416429e1ad53bd6aa0cb3f1 to your computer and use it in GitHub Desktop.
Save foucdeg/44d16a729416429e1ad53bd6aa0cb3f1 to your computer and use it in GitHub Desktop.

Demo

How to install

  1. Get fzf
  2. Install all-the-package-names globally: npm i -g all-the-package-names
  3. Add the following alias to your .bashrc: alias npmi = 'all-the-package-names | fzf | xargs npm install'

How to use

Just use npmi instead of npm i <package-name>. All options work (--save, -g etc).

Keep the list up to date

Set a cron job that updates all-the-package-names (npm update all-the-package-names -g) at a frequency you see fit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment