From 19fe9bd33979652e2439ec385ad5a98ea96fd5b6 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 22 Oct 2024 00:17:28 +0000 Subject: [PATCH] Update cheatsheets --- tldr/npm-search | 33 +++++++++++++++++++++++++++++++++ tldr/nvim | 2 +- tldr/vim | 2 +- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 tldr/npm-search diff --git a/tldr/npm-search b/tldr/npm-search new file mode 100644 index 00000000..681cded3 --- /dev/null +++ b/tldr/npm-search @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm search + +> Search for packages in the `npm` registry. +> More information: . + +- Search for a package by name: + +`npm search {{package}}` + +- Search for packages by a specific keyword: + +`npm search {{keyword}}` + +- Search for packages, including detailed information (e.g., description, author, version): + +`npm search {{package}} --long` + +- Search for packages maintained by a specific author: + +`npm search --author {{author}}` + +- Search for packages with a specific organization: + +`npm search --scope {{organization}}` + +- Search for packages with a specific combination of terms: + +`npm search {{term1 term2 ...}}` diff --git a/tldr/nvim b/tldr/nvim index 8f786167..1e02329e 100644 --- a/tldr/nvim +++ b/tldr/nvim @@ -36,7 +36,7 @@ source: https://github.com/tldr-pages/tldr.git - Enter normal mode and save (write) the file, and quit: -`{{ZZ|:wq}}` +`{{ZZ|:x|:wq}}` - Quit without saving: diff --git a/tldr/vim b/tldr/vim index b1d15016..3863d870 100644 --- a/tldr/vim +++ b/tldr/vim @@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git - Save and quit the current buffer: -`{{ZZ|:wq}}` +`{{ZZ|:x|:wq}}` - Enter normal mode and undo the last operation: