Package
is-primitive
Returns `true` if the value is a primitive.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 4.1m
- -10% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 8 years ago
- v3.0.1
- GitHub stars
- 37
- 7 forks
- Open issues / PRs
- 1 / 2
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
4,141,798 downloads last week, 16,795,152 in the last month. The 12-month change of -10% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 05 in total
- Latest version
- 3.0.1, 10 Jun 20188 years ago
- First published
- 26 Sept 2014
- Last push to GitHub
- 20 Mar 20212,015 days before the snapshot
- Repository archived
- No
- Open issues
- 1
- Open pull requests
- 2
- Commits, last 52 weeks
- 0
- Dependents on npm
- 221
Major versions
- v3 first release 3.0.0, 23 Nov 2017
- v2 first release 2.0.0, 17 Mar 2015
- v1 first release 1.0.0, 13 Feb 2015
- v0 first release 0.1.0, 26 Sept 2014
Recent releases
| Version | Published |
|---|---|
| 3.0.1 | 10 Jun 2018 |
| 3.0.0 | 23 Nov 2017 |
| 2.0.0 | 17 Mar 2015 |
| 1.0.0 | 13 Feb 2015 |
| 0.1.0 | 26 Sept 2014 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=0.10.0
- Runtimes
- -
- Unpacked size (npm)
- 6.6 kB
- Dependencies (0)
- None
npm install is-primitive- jsDelivr
https://cdn.jsdelivr.net/npm/is-primitive@3.0.1/ - unpkg
https://unpkg.com/is-primitive@3.0.1/ - esm.sh
https://esm.sh/is-primitive@3.0.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| @phun-ky/typeof | 307k | - | 1 month ago | ESM only | - |
| string-pixel-width | 78.9k | - | 3 years ago | CommonJS | - |
| @hexagon/base64 | 3.3m | - | 1 year ago | ESM + CommonJS | - |
| string-to-stream | 358.2k | - | 7 years ago | CommonJS | - |
Indexability: Indexed.