decimal.js
npmv10.6.0TypeScriptAn arbitrary-precision Decimal type for JavaScript.
Overview
decimal.js is an npm package that an arbitrary-precision Decimal type for JavaScript. The latest version is 10.6.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need an arbitrary-precision Decimal type for JavaScript and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Zero runtime dependencies — minimal footprint.
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of decimal.js.
Used by
Popular packages that depend on decimal.js.
Frequently installed together
The semantic version parser used by npm.
An AST-based pattern checker for JavaScript.
🔎 A simple, tiny and lightweight benchmarking library!
Calculate specificity of a CSS Selector
Check whether a given string matches the `PotentialCustomElementName` production as defined in the HTML Standard.
Implements the WebIDL algorithms for converting to and from JavaScript values
Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard
CSS color - Resolve and convert CSS colors.
A per-spec XML serializer implementation
Validates whether a string matches the production for an XML name or qualified name
CSS syntax patches for CSS tree
A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations
Version history
| Version | Published | License |
|---|---|---|
| 10.6.0latest | 1 year ago | MIT |
| 10.5.0 | 1 year ago | MIT |
| 10.4.3 | 3 years ago | MIT |
| 10.4.2 | 3 years ago | MIT |
| 10.4.1 | 3 years ago | MIT |
| 10.4.0 | 3 years ago | MIT |
| 10.3.1 | 5 years ago | MIT |
| 10.3.0 | 5 years ago | MIT |
| 10.2.1 | 5 years ago | MIT |
| 10.2.0 | 7 years ago | MIT |
| 10.1.1 | 7 years ago | MIT |
| 10.0.2 | 7 years ago | MIT |
| 10.0.1 | 8 years ago | MIT |
| 10.0.0 | 8 years ago | MIT |
| 9.0.1 | 8 years ago | MIT |
| 9.0.0 | 8 years ago | MIT |
| 8.0.0 | 8 years ago | MIT |
| 7.5.1 | 8 years ago | MIT |
| 7.5.0 | 8 years ago | MIT |
| 7.4.0 | 8 years ago | MIT |
Maintainers
Frequently asked questions
How do I install decimal.js?
Run `npm install decimal.js` to add decimal.js to your npm project.
What license is decimal.js released under?
decimal.js is distributed under the MIT license.
How popular is decimal.js?
decimal.js has approximately 0 downloads per week and 1 known dependent packages.