ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

npm

by PixnBits ST3

npm commands within Sublime Text

Details

Installs

  • Total 38K
  • Win 25K
  • Mac 8K
  • Linux 5K
Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7
Windows 0 1 0 1 0 2 1 1 1 0 0 2 1 1 2 1 1 0 0 1 1 1 2 0 0 0 0 1 1 2 0 0 1 2 1 0 0 0 0 1 2 1 0 0 0 2
Mac 0 0 0 0 0 0 1 2 0 1 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 2 0 1
Linux 0 2 2 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

sublime-text-npm

npm commands within Sublime Text (v3)

Git integration is handy, so why not npm too?

Installation

  1. Install node and npm on your machine
  2. Install Package Control in Sublime Text
  3. Open the “Command Pallet” (CTRL+SHIFT+P or +SHIFT+P)
  4. type “pkgctlinspkg” (for “Package Control: Install Package” ;-)
  5. type “npm
  6. Tah-dah!

Usage

  1. Open a file (usually a *.js or *.coffee) in your npm project/package
  2. CTRL+SHIFT+P or +SHIFT+P
  3. Type npm: to see all npm commands
  4. Press Enter to invoke the selected command. The npm command will be run in the directory of your focused file.

Commands Implemented

If you don't see your favorite here, please file an issue.

Install:

  • Install Saved Packages: npm install
  • Install Package: npm install <pkg name>
  • Install and Save Package: npm install <pkg name> --save
  • Install and Save Development Package: npm install <pkg name> --save-dev

Uninstall:

  • Remove/Uninstall Package: npm rm
  • Remove/Uninstall Saved Package: npm rm --save --save-dev -save-optional

List:

  • List Installed Packages: npm list --depth 0
  • List Installed Packages, Deep: npm list

Outdated:

  • Check for outdated packages: npm outdated

Run:

  • Run Script: npm run <script>

Update:

  • Update Local Packages: npm update or npm update <name>

Search:

  • Search Packages: npm search <name>

Link:

  • Register this Package for Linking: npm link
  • Link Package Here: npm link <name>

Test:

  • Test a package: npm test

Run Arbitrary:

  • Run something not covered here (basically, npm <whatever your input was>)