npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

expo-numerator

v0.1.3

Published

Production-grade numeric infrastructure for Expo and React Native.

Readme

expo-numerator

CI Publish npm version npm downloads License: MIT TypeScript Expo SDK 55

Production-grade numeric infrastructure for Expo and React Native.

expo-numerator provides string-first decimal, money, percent, unit, phone, formatting, parsing, and React Native input APIs without silent floating-point precision loss.

Install

For Expo apps, use Expo CLI:

npx expo install expo-numerator

For non-Expo npm workflows:

npm install expo-numerator

Quick Start

Use createNumerator when an app wants one locale-bound facade:

import { createNumerator } from "expo-numerator";

const n = createNumerator({ locale: "tr-TR" });

n.money.format("1234.56", "TRY"); // "₺1.234,56"
n.money.safeParse("₺1.234,56", "TRY").ok; // true
n.decimal.add("999.99", "0.01").value; // "1000.00"
n.unit.formatBestFit("1500", "meter", { scale: 1 }); // "1,5 km"
n.phone.parse("0501 234 56 78").e164; // "+905012345678"

Use domain subpaths when a bundle only needs one surface:

import { formatMoney } from "expo-numerator/format";
import { money, toMinorUnits } from "expo-numerator/money";
import { MoneyInput } from "expo-numerator/input";
import { parsePhone } from "expo-numerator/phone";

formatMoney(money("1234.56", "TRY"), { locale: "tr-TR" });
toMinorUnits("12.34", "USD"); // 1234n
parsePhone("+905012345678").region; // "TR"

For React Native money input, start with the ready-made component:

import { MoneyInput } from "expo-numerator";

<MoneyInput
  locale="tr-TR"
  currency="TRY"
  entryMode="liveGroupedEndLocked"
  onValueChange={(value) => {
    value?.kind === "money" ? value.amount : null;
  }}
/>;

Documentation

The official consumer documentation lives in docs/:

Maintainer and release documentation:

Core Rules

  • Pass decimal values as strings for exact precision.
  • JavaScript numbers are accepted only for safe integer convenience.
  • Use throwing constructors when the call site owns validation.
  • Use safe* APIs for forms, paste handling, API boundaries, and user input.
  • Import only from expo-numerator or public domain subpaths.

Public Subpaths

import { decimal } from "expo-numerator/core";
import { money } from "expo-numerator/money";
import { roundDecimal } from "expo-numerator/rounding";
import { resolveLocale } from "expo-numerator/locale";
import { formatNumber } from "expo-numerator/format";
import { safeParseNumber } from "expo-numerator/parse";
import { convertUnit } from "expo-numerator/unit";
import { parsePhone } from "expo-numerator/phone";
import { NumberInput } from "expo-numerator/input";
import { createExpoNumerator } from "expo-numerator/expo";

Status

0.1.3 includes Foundation+Core, locale, format, parse alpha APIs, phone APIs, React Native input APIs, Expo integration helpers, generated locale data, global generated phone metadata, domain subpath exports, a valid Expo config plugin entry, package smoke checks, and release hardening.

Development

npm run typecheck
npm test -- --runInBand
npm run docs:check
npm run hardening

Repo-local agent guidance lives in AGENTS.md, CLAUDE.md, .agent/, and skills/README.md. The skills tree is split into skills/common, skills/consumer, and skills/maintainer.

See docs/RELEASE_CHECKLIST.md for the full release-candidate gate.