npm
npm commands within Sublime Text
Details
Installs
- Total 37K
- Win 25K
- Mac 8K
- Linux 5K
Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 1 | 3 | 0 | 1 | 3 | 2 | 2 | 1 | 0 | 2 | 1 | 2 | 1 | 2 | 5 | 4 | 3 | 1 | 1 | 1 | 3 | 2 | 1 | 1 | 0 | 1 | 2 | 1 | 4 | 0 | 2 | 3 | 0 | 1 | 2 | 0 | 2 | 1 | 2 | 1 | 1 | 1 | 0 |
Mac | 0 | 0 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 3 |
Linux | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 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
- Install node and npm on your machine
- Install Package Control in Sublime Text
- Open the “Command Pallet” (CTRL+SHIFT+P or ⌘+SHIFT+P)
- type “pkgctlinspkg” (for “Package Control: Install Package” ;-)
- type “npm”
- Tah-dah!
Usage
- Open a file (usually a *.js or *.coffee) in your npm project/package
- CTRL+SHIFT+P or ⌘+SHIFT+P
- Type
npm:
to see all npm commands - 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 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
- 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
- Check for outdated packages:
npm outdated
Run:
- Run Script:
npm run <script>
- Update Local Packages:
npm update
ornpm update <name>
- 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>
)