Last active
March 2, 2023 20:45
-
-
Save farukcan/ebfe20cef43d119ebef0ad2e5758db1a to your computer and use it in GitHub Desktop.
Visual Powershell - NPM Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "NPM Commands", | |
"Author": "farukcan", | |
"Website": "https://farukcan.net", | |
"Commands": [ | |
{ | |
"Name": "🚀Initialize package.json", | |
"Scripts": [ | |
"npm init -y" | |
] | |
}, | |
{ | |
"Name": "📦Install Dependencies", | |
"Scripts": [ | |
"npm install" | |
] | |
}, | |
{ | |
"Name": "▶️ Run Script (prod, dev, test)", | |
"Scripts": [ | |
"npm run {text:Script (Ex; prod, dev, test)}" | |
] | |
}, | |
{ | |
"Name": "➕Add & Install Package", | |
"Scripts": [ | |
"npm i {text:Package (Format; package or package-name@1.2.3)} -s" | |
] | |
}, | |
{ | |
"Name": "🗑️Uninstall Package", | |
"Scripts": [ | |
"npm un {text:Package} -s" | |
] | |
}, | |
{ | |
"Name": "🔄Update Package", | |
"Scripts": [ | |
"npm up {text:Package} -s" | |
] | |
}, | |
{ | |
"Name": "🔍List Packages", | |
"Scripts": [ | |
"npm ls" | |
] | |
}, | |
{ | |
"Name": "🔍List Globally Installed Packages", | |
"Scripts": [ | |
"npm list -g --depth=0" | |
] | |
}, | |
{ | |
"Name": "➕Install Global Package", | |
"Scripts": [ | |
"npm -g install {text:Package}" | |
] | |
}, | |
{ | |
"Name": "🗑️Remove Global Package", | |
"Scripts": [ | |
"npm -g uninstall {text:Package}" | |
] | |
}, | |
{ | |
"Name": "🔍List Available Scripts To Run", | |
"Scripts": [ | |
"npm run" | |
] | |
}, | |
{ | |
"Name": "🧪Version Info", | |
"Scripts": [ | |
"npm -v", | |
"npm list" | |
] | |
}, | |
{ | |
"Name": "🌊Prune", | |
"Scripts": [ | |
"npm prune" | |
] | |
}, | |
{ | |
"Name": "🧹Clean Cache", | |
"Scripts": [ | |
"npm cache clean -f" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment