npm
npm commands within Sublime Text
Details
Installs
- Total 38K
- Win 25K
- Mac 8K
- Linux 5K
| Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 1 | 1 | 0 | 4 | 3 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 | 0 | 1 | 
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 1 | 0 | 
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 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 updateornpm 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>)