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
May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8
Windows 0 3 0 0 0 0 2 0 1 1 1 2 1 0 0 0 0 1 2 1 1 0 0 2 0 4 1 2 0 1 1 1 0 2 0 1 1 2 3 2 1 0 0 1 2 1
Mac 0 1 0 2 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 0 1
Linux 0 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 0 0 0 0 0
0246May 23May 20May 17May 14May 11May 8May 5May 2Apr 29Apr 26Apr 23Apr 20Apr 17Apr 14Apr 11Apr 8May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 1 Windows: 3May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 2 Windows: 0May 19 Linux: 1 Mac: 0 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 1 Mac: 0 Windows: 2May 16 Linux: 0 Mac: 1 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 1May 14 Linux: 1 Mac: 0 Windows: 1May 13 Linux: 0 Mac: 0 Windows: 1May 12 Linux: 0 Mac: 0 Windows: 2May 11 Linux: 1 Mac: 0 Windows: 1May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 0May 7 Linux: 0 Mac: 0 Windows: 0May 6 Linux: 0 Mac: 0 Windows: 1May 5 Linux: 0 Mac: 0 Windows: 2May 4 Linux: 0 Mac: 0 Windows: 1May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 1 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 4Apr 27 Linux: 0 Mac: 0 Windows: 1Apr 26 Linux: 0 Mac: 0 Windows: 2Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 1Apr 23 Linux: 0 Mac: 0 Windows: 1Apr 22 Linux: 0 Mac: 0 Windows: 1Apr 21 Linux: 0 Mac: 0 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 2Apr 19 Linux: 2 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 2 Windows: 1Apr 17 Linux: 0 Mac: 0 Windows: 1Apr 16 Linux: 0 Mac: 0 Windows: 2Apr 15 Linux: 1 Mac: 2 Windows: 3Apr 14 Linux: 0 Mac: 0 Windows: 2Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 0 Mac: 0 Windows: 1Apr 9 Linux: 0 Mac: 0 Windows: 2Apr 8 Linux: 0 Mac: 1 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 1 Windows: 3May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 2 Windows: 0May 19 Linux: 1 Mac: 0 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 1 Mac: 0 Windows: 2May 16 Linux: 0 Mac: 1 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 1May 14 Linux: 1 Mac: 0 Windows: 1May 13 Linux: 0 Mac: 0 Windows: 1May 12 Linux: 0 Mac: 0 Windows: 2May 11 Linux: 1 Mac: 0 Windows: 1May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 0May 7 Linux: 0 Mac: 0 Windows: 0May 6 Linux: 0 Mac: 0 Windows: 1May 5 Linux: 0 Mac: 0 Windows: 2May 4 Linux: 0 Mac: 0 Windows: 1May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 1 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 4Apr 27 Linux: 0 Mac: 0 Windows: 1Apr 26 Linux: 0 Mac: 0 Windows: 2Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 1Apr 23 Linux: 0 Mac: 0 Windows: 1Apr 22 Linux: 0 Mac: 0 Windows: 1Apr 21 Linux: 0 Mac: 0 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 2Apr 19 Linux: 2 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 2 Windows: 1Apr 17 Linux: 0 Mac: 0 Windows: 1Apr 16 Linux: 0 Mac: 0 Windows: 2Apr 15 Linux: 1 Mac: 2 Windows: 3Apr 14 Linux: 0 Mac: 0 Windows: 2Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 0 Mac: 0 Windows: 1Apr 9 Linux: 0 Mac: 0 Windows: 2Apr 8 Linux: 0 Mac: 1 Windows: 1May 23 Linux: 0 Mac: 0 Windows: 0May 22 Linux: 0 Mac: 1 Windows: 3May 21 Linux: 0 Mac: 0 Windows: 0May 20 Linux: 0 Mac: 2 Windows: 0May 19 Linux: 1 Mac: 0 Windows: 0May 18 Linux: 0 Mac: 0 Windows: 0May 17 Linux: 1 Mac: 0 Windows: 2May 16 Linux: 0 Mac: 1 Windows: 0May 15 Linux: 0 Mac: 0 Windows: 1May 14 Linux: 1 Mac: 0 Windows: 1May 13 Linux: 0 Mac: 0 Windows: 1May 12 Linux: 0 Mac: 0 Windows: 2May 11 Linux: 1 Mac: 0 Windows: 1May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 0May 7 Linux: 0 Mac: 0 Windows: 0May 6 Linux: 0 Mac: 0 Windows: 1May 5 Linux: 0 Mac: 0 Windows: 2May 4 Linux: 0 Mac: 0 Windows: 1May 3 Linux: 0 Mac: 0 Windows: 1May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 1 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 4Apr 27 Linux: 0 Mac: 0 Windows: 1Apr 26 Linux: 0 Mac: 0 Windows: 2Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 1Apr 23 Linux: 0 Mac: 0 Windows: 1Apr 22 Linux: 0 Mac: 0 Windows: 1Apr 21 Linux: 0 Mac: 0 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 2Apr 19 Linux: 2 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 2 Windows: 1Apr 17 Linux: 0 Mac: 0 Windows: 1Apr 16 Linux: 0 Mac: 0 Windows: 2Apr 15 Linux: 1 Mac: 2 Windows: 3Apr 14 Linux: 0 Mac: 0 Windows: 2Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 0 Mac: 0 Windows: 1Apr 9 Linux: 0 Mac: 0 Windows: 2Apr 8 Linux: 0 Mac: 1 Windows: 1

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>)