Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
yarn Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# yarn
> JavaScript and Node.js package manager alternative.
> More information: <https://yarnpkg.com>.
- Install a module globally:
`yarn global add {{module_name}}`
- Install all dependencies referenced in the `package.json` file (the `install` is optional):
`yarn install`
- Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):
`yarn add {{module_name}}@{{version}}`
- Uninstall a module and remove it from the `package.json` file:
`yarn remove {{module_name}}`
- Interactively create a `package.json` file:
`yarn init`
- Identify whether a module is a dependency and list other modules that depend upon it:
`yarn why {{module_name}}`