Atom plugin to automatically install and save any selected
npm packages not already included in the closest
- Select the
importstatements of the packages you want to install.
- Open the Command Palette, and type
npm installto bring up the available commands.
- Your packages will be installed. Enjoy!
Settings > Packages > npm-install:
- Install Cache: force your installations to always or never use the local cache.
- Custom npm PATH lookup: useful if you keep your npm in an unconventional location. Point this to the directory of your npm executable should you have any issues.
- Packages must now be selected to be installed. This gives you control over which packages are being installed instead of trying to work that out for you, making it simpler to support scoped packages :sparkles:.
- The installation pane is now attached to the right instead of the bottom of the screen.
- ES6 support! No more parsing errors, also
importstatements can be installed like you would requires too.
- CoffeeScript is no longer supported. If you’d like that back, I’d recommend sticking with the previous version or submitting a pull request to atom-selected-requires.
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'
MIT. See LICENSE.md for details.