hughsk / atom-npm-install

Automatically install and save any missing npm modules being used in the current file
http://atom.io/packages/npm-install
MIT License
80 stars 7 forks source link

npm-install stable

Atom plugin to automatically install and save any selected npm packages not already included in the closest package.json file.

npm-install

Usage

  1. Select the require or import statements of the packages you want to install.
  2. Open the Command Palette, and type npm install to bring up the available commands.
  3. Your packages will be installed. Enjoy!

Configuration Options

Accessible from Settings > Packages > npm-install:

Changelog

3.0.0

2.0.0

As of version 2.0.0 keybindings are not included by default. If you miss these shortcuts, simply add the following to your keymap file:

'.workspace':
  'ctrl-alt-i': 'npm-install:save'
  'ctrl-alt-d': 'npm-install:save-dev'

License

MIT. See LICENSE.md for details.