anynum
npmv1.0.1Normalize all Unicode decimal digits (Devanagari, Arabic, Thai, etc.) to ASCII numerals. Zero dependencies, performance-first.
Safe to adopt
Yes — anynum scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 83 days ago. 2 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 83 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 16 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding anynum to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the anynum README.
import anynum from 'anynum';
anynum('१२.३४') // → '12.34' (Devanagari)
anynum('٣٫١٤') // → '3.14' (Arabic-Indic)
anynum('−४२') // → '-42' (Unicode minus + Devanagari)
anynum('-99.5') // → '-99.5' (Fullwidth minus + Fullwidth digits)
anynum('hello') // → 'hello' (no digits — zero allocation)
anynum('100') // → '100' (already ASCII — zero allocation)anynum vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| anynumthis page | 0 | 1 | MIT | 2 months ago |
| get-east-asian-width | 69.3M | 1 | MIT | 1 day ago |
| string-width | 0 | 3 | MIT | 1 day ago |
| tr46 | 192.6M | 1 | MIT | 1 day ago |
| punycode | 148.9M | 2 | MIT | 1 day ago |
| long | 78.6M | 1 | Apache-2.0 | 1 day ago |
Used by
Popular packages that depend on anynum.
Relationship graph
Dependencies (left) and dependents (right) of anynum.
Release history
2 releases in the last two years.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.1latest | 2 months ago | 16 KB | MIT |
| 1.0.0 | 3 months ago | 16 KB | MIT |
Overview
anynum is an npm package that normalize all Unicode decimal digits (Devanagari, Arabic, Thai, etc.) to ASCII numerals. Zero dependencies, performance-first. It has 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 focused 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
- 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.
Maintainers
Funding
Frequently asked questions
Should I use anynum?
Yes — anynum scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 83 days ago. 2 releases in the last 2 years.
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?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on anynum.
Is anynum still maintained?
The most recent release of anynum (v1.0.1) was published 2 months ago.
Does anynum run install scripts?
No. anynum does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.