Skip to content
JS
Package

has-values

Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.

v2.0.1, 31 Jan 2018MITCommonJSTypes: NoneUtility libraries
$ npm install has-values

Key numbers

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

Downloads

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

20,116,226 downloads last week, 79,662,242 in the last month. The 12-month change of -5% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
07 in total
Latest version
2.0.1, 31 Jan 20188 years ago
First published
25 Mar 2015
Last push to GitHub
16 Dec 20202,108 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
667

Major versions

  1. v2 first release 2.0.0, 30 Jan 2018
  2. v1 first release 1.0.0, 19 May 2017
  3. v0 first release 0.1.1, 25 Mar 2015

Recent releases

VersionPublished
2.0.131 Jan 2018
2.0.030 Jan 2018
1.0.019 May 2017
0.1.427 Mar 2016
0.1.327 Mar 2015
0.1.225 Mar 2015
0.1.125 Mar 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=6
Runtimes
-
Unpacked size (npm)
-
Dependencies (1)
kind-of
npm install has-values
  • jsDelivrhttps://cdn.jsdelivr.net/npm/has-values@2.0.1/
  • unpkghttps://unpkg.com/has-values@2.0.1/
  • esm.shhttps://esm.sh/has-values@2.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.