Skip to content
JS
Package

value-or-function

Normalize a value or function, applying extra args to the function

v4.0.0, 30 Jan 2022MITCommonJSTypes: None
$ npm install value-or-function

Key numbers

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

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.1m (21 Jul 2026)Low 1.1m (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.

1,982,086 downloads last week, 10,120,941 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
4.0.0, 30 Jan 20224 years ago
First published
1 Apr 2016
Last push to GitHub
14 Mar 20231,291 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v4 first release 4.0.0, 30 Jan 2022
  2. v3 first release 3.0.0, 21 Jul 2017
  3. v2 first release 2.0.0, 17 Aug 2016
  4. v1 first release 1.0.0, 1 Apr 2016

Recent releases

VersionPublished
4.0.030 Jan 2022
3.0.021 Jul 2017
2.0.017 Aug 2016
1.2.115 Jul 2016
1.2.019 Jun 2016
1.1.07 Jun 2016
1.0.01 Apr 2016
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 10.13.0
Runtimes
-
Unpacked size (npm)
8.4 kB
Dependencies (0)
None
npm install value-or-function
  • jsDelivrhttps://cdn.jsdelivr.net/npm/value-or-function@4.0.0/
  • unpkghttps://unpkg.com/value-or-function@4.0.0/
  • esm.shhttps://esm.sh/value-or-function@4.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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