From cd5eeaaa08eabb505b65747a428c3c59159663dc Mon Sep 17 00:00:00 2001 From: Michael Garvin Date: Tue, 12 Jan 2021 11:33:58 -0800 Subject: [PATCH] fix(docs): re-add `-S` --- docs/content/commands/npm-uninstall.md | 10 +++++----- lib/uninstall.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/content/commands/npm-uninstall.md b/docs/content/commands/npm-uninstall.md index 0d7a5bbe9fb95..77945b5e4692a 100644 --- a/docs/content/commands/npm-uninstall.md +++ b/docs/content/commands/npm-uninstall.md @@ -7,7 +7,7 @@ description: Remove a package ### Synopsis ```bash -npm uninstall [<@scope>/][@]... [--save|--no-save] +npm uninstall [<@scope>/][@]... [-S|--save|--no-save] aliases: remove, rm, r, un, unlink ``` @@ -27,10 +27,10 @@ will update those files as well. `--no-save` will tell npm not to remove the package from your `package.json`, `npm-shrinkwrap.json`, or `package-lock.json` files. -`--save` will tell npm to remove the package from your `package.json`, -`npm-shrinkwrap.json`, and `package-lock.json` files. This is the -default, but you may need to use this if you have for instance -`save=false` in your `npmrc` file +`--save` or `-S` will tell npm to remove the package from your +`package.json`, `npm-shrinkwrap.json`, and `package-lock.json` files. +This is the default, but you may need to use this if you have for +instance `save=false` in your `npmrc` file In global mode (ie, with `-g` or `--global` appended to the command), it uninstalls the current package context as a global package. diff --git a/lib/uninstall.js b/lib/uninstall.js index f020e95a4ad5f..15995c0b3cc94 100644 --- a/lib/uninstall.js +++ b/lib/uninstall.js @@ -9,7 +9,7 @@ const completion = require('./utils/completion/installed-shallow.js') const usage = usageUtil( 'uninstall', - 'npm uninstall [<@scope>/][@]... [--save, --no-save]' + 'npm uninstall [<@scope>/][@]... [-S|--save|--no-save]' ) const cmd = (args, cb) => rm(args).then(() => cb()).catch(cb)