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
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
- v4 first release 4.0.0, 30 Jan 2022
- v3 first release 3.0.0, 21 Jul 2017
- v2 first release 2.0.0, 17 Aug 2016
- v1 first release 1.0.0, 1 Apr 2016
Recent releases
| Version | Published |
|---|---|
| 4.0.0 | 30 Jan 2022 |
| 3.0.0 | 21 Jul 2017 |
| 2.0.0 | 17 Aug 2016 |
| 1.2.1 | 15 Jul 2016 |
| 1.2.0 | 19 Jun 2016 |
| 1.1.0 | 7 Jun 2016 |
| 1.0.0 | 1 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- jsDelivr
https://cdn.jsdelivr.net/npm/value-or-function@4.0.0/ - unpkg
https://unpkg.com/value-or-function@4.0.0/ - esm.sh
https://esm.sh/value-or-function@4.0.0
Indexability: Not indexed (discovery only): no category.