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

npm

by PixnBits ST3

npm commands within Sublime Text

Details

  • 0.0.10
  • github.​com
  • github.​com
  • 9 months ago
  • 51 minutes ago
  • 3 years ago

Installs

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

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