atom-npm-install npm

Automatically install and save any missing npm modules being used in the current file

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:

  • 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.

Changelog

3.0.0

  • 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 import statements 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.

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.

Related Repositories

atom-autocomplete-module-import

atom-autocomplete-module-import

⚛️ Search & install npm packages from import/require statements. ...

atom-npm-install

atom-npm-install

Automatically install and save any missing npm modules being used in the current file ...

node-electron-lite

node-electron-lite

this package will dynamically download and install the electron browser from https://github.com/atom/electron/releases with zero npm-dependencies ...

atom-npm-helper

atom-npm-helper

Search the npm registry and install packages from Atom. ...

atom-select-npm-install

atom-select-npm-install

:package: install npm modules from popup in atom ...


Top Contributors

hughsk

Releases

-   v4.0.3 zip tar
-   v4.0.2 zip tar
-   v4.0.1 zip tar
-   v4.0.0 zip tar
-   v3.0.1 zip tar
-   v3.0.0 zip tar
-   v2.0.0 zip tar
-   v1.0.1 zip tar
-   v1.0.0 zip tar
-   v0.1.2 zip tar
-   v0.1.1 zip tar
-   v0.1.0 zip tar
-   v0.0.1 zip tar