Package
safe-compare
Constant-time comparison algorithm to prevent timing attacks.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 308.6k
- +168% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 7 years ago
- v1.1.4
- GitHub stars
- 27
- 3 forks
- Open issues / PRs
- 0 / 2
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
308,635 downloads last week, 2,188,226 in the last month. The 12-month change of +168% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 09 in total
- Latest version
- 1.1.4, 1 Mar 20197 years ago
- First published
- 24 Feb 2016
- Last push to GitHub
- 14 Dec 20231,015 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 2
- Commits, last 52 weeks
- 0
- Dependents on npm
- 68
Major versions
- v1 first release 1.0.0, 24 Feb 2016
Recent releases
| Version | Published |
|---|---|
| 1.1.4 | 1 Mar 2019 |
| 1.1.3 | 2 Nov 2018 |
| 1.1.2 | 28 Feb 2018 |
| 1.1.1 | 11 Feb 2018 |
| 1.1.0 | 17 Nov 2017 |
| 1.0.3 | 12 Jul 2016 |
| 1.0.2 | 15 Mar 2016 |
| 1.0.1 | 24 Feb 2016 |
| 1.0.0 | 24 Feb 2016 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 8.7 kB
- Dependencies (1)
buffer-alloc
npm install safe-compare- jsDelivr
https://cdn.jsdelivr.net/npm/safe-compare@1.1.4/ - unpkg
https://unpkg.com/safe-compare@1.1.4/ - esm.sh
https://esm.sh/safe-compare@1.1.4
Indexability: Indexed.