Skip to content
JS
Package

has-value

Returns true if a value exists, false if empty. Works with deeply nested values using object paths.

v2.0.2, 3 Mar 2018MITCommonJSTypes: None
$ npm install has-value

Key numbers

As of 25 Sept 2026
Weekly downloads
20m
-12% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
8 years ago
v2.0.2
GitHub stars
26
6 forks
Open issues / PRs
2 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30mSept 2025Mar 2026Sept 2026High 29.8m (21 Oct 2025)Low 10.3m (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.

19,996,567 downloads last week, 78,967,596 in the last month. The 12-month change of -12% 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
2.0.2, 3 Mar 20188 years ago
First published
22 Sept 2014
Last push to GitHub
3 Mar 20183,127 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
703

Major versions

  1. v2 first release 2.0.0, 31 Jan 2018
  2. v1 first release 1.0.0, 19 May 2017
  3. v0 first release 0.1.0, 22 Sept 2014

Recent releases

VersionPublished
2.0.23 Mar 2018
2.0.131 Jan 2018
2.0.031 Jan 2018
1.0.019 May 2017
0.3.127 Mar 2016
0.3.024 Nov 2015
0.2.130 Oct 2015
0.2.025 Mar 2015
0.1.022 Sept 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=6
Runtimes
-
Unpacked size (npm)
10 kB
Dependencies (2)
get-valuehas-values
npm install has-value
  • jsDelivrhttps://cdn.jsdelivr.net/npm/has-value@2.0.2/
  • unpkghttps://unpkg.com/has-value@2.0.2/
  • esm.shhttps://esm.sh/has-value@2.0.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.