Skip to content
JS
Package

is-primitive

Returns `true` if the value is a primitive.

v3.0.1, 10 Jun 2018MITCommonJSTypes: NoneStrings and text
$ npm install is-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
02m4m6m8mSept 2025Mar 2026Sept 2026High 6.2m (25 Nov 2025)Low 2m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v3 first release 3.0.0, 23 Nov 2017
  2. v2 first release 2.0.0, 17 Mar 2015
  3. v1 first release 1.0.0, 13 Feb 2015
  4. v0 first release 0.1.0, 26 Sept 2014

Recent releases

VersionPublished
3.0.110 Jun 2018
3.0.023 Nov 2017
2.0.017 Mar 2015
1.0.013 Feb 2015
0.1.026 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-primitive@3.0.1/
  • unpkghttps://unpkg.com/is-primitive@3.0.1/
  • esm.shhttps://esm.sh/is-primitive@3.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
@phun-ky/typeof307k-1 month agoESM only-
string-pixel-width78.9k-3 years agoCommonJS-
@hexagon/base643.3m-1 year agoESM + CommonJS-
string-to-stream358.2k-7 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.