Skip to content
JS
Package

@hapi/formula

Math and string formula parser.

v4.0.0, 1 Jul 2026BSD-3-ClauseESM onlyTypes: BundledNumbers and mathsParsers and serialisers
$ npm install @hapi/formula

Key numbers

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

Downloads

Last week 2026-09-15 to 2026-09-21
02.5m5m7.5m10mSept 2025Mar 2026Sept 2026High 9.8m (25 Aug 2026)Low 1.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.

6,210,331 downloads last week. The 12-month change of +303% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
17 in total
Latest version
4.0.0, 1 Jul 20262 months ago
First published
24 Jun 2019
Last push to GitHub
1 Jul 202685 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
9
Dependents on npm
16

Major versions

  1. v4 first release 4.0.0, 1 Jul 2026
  2. v3 first release 3.0.0, 4 Jan 2020
  3. v2 first release 2.0.0, 7 Oct 2019
  4. v1 first release 1.0.0, 24 Jun 2019

Recent releases

VersionPublished
4.0.01 Jul 2026
3.0.219 Feb 2023
3.0.04 Jan 2020
2.0.07 Oct 2019
1.2.09 Aug 2019
1.1.024 Jun 2019
1.0.024 Jun 2019
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
17 kB
Dependencies (0)
None
npm install @hapi/formula
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@hapi/formula@4.0.0/
  • unpkghttps://unpkg.com/@hapi/formula@4.0.0/
  • esm.shhttps://esm.sh/@hapi/formula@4.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
expr-eval382.7k-6 years agoESM + CommonJS-
@cortex-js/compute-engine176.4k-todayESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.