anynum
npmv1.0.1Normalize all Unicode decimal digits (Devanagari, Arabic, Thai, etc.) to ASCII numerals. Zero dependencies, performance-first.
Overview
anynum is an npm package that normalize all Unicode decimal digits (Devanagari, Arabic, Thai, etc.) to ASCII numerals. Zero dependencies, performance-first. It is extremely widely used, with about 15.4M downloads per week and 1 known dependents in the graph. The latest version is 1.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need normalize all Unicode decimal digits (Devanagari, Arabic, Thai, etc.) to ASCII numerals. Zero dependencies, performance-first and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (15.4M weekly downloads).
- Clear open-source license (MIT).
- Zero runtime dependencies — minimal footprint.
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of anynum.
Used by
Popular packages that depend on anynum.
Alternatives to anynum
Get the visual width of a string - the number of columns required to display it
Determine the East Asian Width of a Unicode character
Colored symbols for various log levels. Example: `✔︎ Success`
Strip leading whitespace from each line in a string
Elegant terminal spinner
Spinners for use in the terminal
Parse String to Number based on configuration
Strip redundant indentation and indent the string
Support for representing 64-bit integers in JavaScript
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
An arbitrary length integer library for Javascript
Version history
| Version | Published | License |
|---|---|---|
| 1.0.1latest | 1 month ago | MIT |
| 1.0.0 | 1 month ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install anynum?
Run `npm install anynum` to add anynum to your npm project.
What license is anynum released under?
anynum is distributed under the MIT license.
How popular is anynum?
anynum has approximately 15,373,053 downloads per week and 1 known dependent packages.