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