</>PackageGraphPackageGraph

anynum

npmv1.0.1

Normalize 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

16 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
anynumthis page01MIT2 months ago
get-east-asian-width69.3M1MIT1 day ago
string-width03MIT1 day ago
tr46192.6M1MIT1 day ago
punycode148.9M2MIT1 day ago
long78.6M1Apache-2.01 day ago

Used by

Popular packages that depend on anynum.

Relationship graph

Dependencies (left) and dependents (right) of anynum.

strnumanynum
anynum dependencies dependents

Release history

2 releases in the last two years.

Recent versions of anynum
VersionPublishedSizeLicense
1.0.1latest2 months ago16 KBMIT
1.0.03 months ago16 KBMIT

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

Keywords

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.