Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-08 00:14:59 +00:00
parent a812b3c467
commit f8bee5305f
111 changed files with 540 additions and 310 deletions

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a `package.json` file with default values (omit `--yes` to do it interactively):
`npm init {{-y|--yes}}`
`npm init {{[-y|--yes]}}`
- Download all the packages listed as dependencies in `package.json`:
@@ -23,11 +23,11 @@ source: https://github.com/tldr-pages/tldr.git
- Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
`npm install {{package_name}} {{-D|--save-dev}}`
`npm install {{package_name}} {{[-D|--save-dev]}}`
- Download the latest version of a package and install it globally:
`npm install {{-g|--global}} {{package_name}}`
`npm install {{[-g|--global]}} {{package_name}}`
- Uninstall a package and remove it from the list of dependencies in `package.json`:
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
- List all top-level globally installed packages:
`npm list {{-g|--global}} --depth {{0}}`
`npm list {{[-g|--global]}} --depth {{0}}`