Package
sudo-prompt
Run a command using sudo, prompting the user with an OS dialog if necessary
Deprecated on npm
Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.Key numbers
As of 25 Sept 2026
- Weekly downloads
- 2.2m
- -16% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 6 years ago
- v9.2.1
- GitHub stars
- 494
- 124 forks
- Open issues / PRs
- 24 / 4
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
2,158,245 downloads last week, 9,058,047 in the last month. The 12-month change of -16% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 047 in total
- Latest version
- 9.2.1, 29 Apr 20206 years ago
- First published
- 8 Jun 2015
- Last push to GitHub
- 23 Nov 20202,131 days before the snapshot
- Repository archived
- Yes
- Open issues
- 24
- Open pull requests
- 4
- Commits, last 52 weeks
- 0
- Dependents on npm
- -
Major versions
- v9 first release 9.0.0, 3 Jun 2019
- v8 first release 8.0.0, 2 Nov 2017
- v7 first release 7.0.0, 15 Mar 2017
- v6 first release 6.0.0, 15 Jul 2016
- v5 first release 5.0.0, 4 Jun 2016
- v4 first release 4.0.0, 18 May 2016
- v3 first release 3.0.0, 15 Apr 2016
- v2 first release 2.0.0, 17 Nov 2015
- v1 first release 1.0.0, 8 Jun 2015
Recent releases
| Version | Published |
|---|---|
| 9.2.1 | 29 Apr 2020 |
| 9.1.1 | 14 Nov 2019 |
| 9.1.0 | 14 Nov 2019 |
| 9.0.0 | 3 Jun 2019 |
| 8.2.5 | 12 Dec 2018 |
| 8.2.3 | 11 Sept 2018 |
| 8.2.2 | 11 Sept 2018 |
| 8.2.1 | 11 Sept 2018 |
| 8.2.0 | 22 Mar 2018 |
| 8.1.0 | 10 Jan 2018 |
| 8.0.0 | 2 Nov 2017 |
| 7.1.1 | 18 Jul 2017 |
| 7.1.0 | 20 Jun 2017 |
| 7.0.0 | 15 Mar 2017 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 45 kB
- Dependencies (0)
- None
npm install sudo-prompt- jsDelivr
https://cdn.jsdelivr.net/npm/sudo-prompt@9.2.1/ - unpkg
https://unpkg.com/sudo-prompt@9.2.1/ - esm.sh
https://esm.sh/sudo-prompt@9.2.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @expo/sudo-prompt | 6.4m | - | 1 year ago | CommonJS | - |
| @vscode/sudo-prompt | 1.8m | - | 8 months ago | CommonJS | - |
Indexability: Not indexed (discovery only): deprecated.