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

proposal-amount

v20250918.0.0

Published

Polyfill for TC39 Amount proposal

Downloads

10

Readme

proposal-amount: Champion-maintained polyfill for the Amount proposal

This polyfill is intended to match the specification for the Ecma TC39 Amount proposal. See the README there to learn more, including the API. Briefly, the Amount proposal bundles a mathematical value (coming from a digit String, Number, or BigInt) with an optional unit (kilogram, mile, etc) as well as an optional precision, which expresses the number of fractional digits or significant digits that mathematical value is understood as having.

This proposal is intended to match the spec as far as possible. Matching the spec is the main priority; performance is a secondary priority (though since there's rather little that Amount is intedned to do, we don't expect there to be much deviation in the performance of different implementations).

Development

The code is written in TypeScript, with tests in Jest.

Issues

You're welcome to file an issue on GitHub. Before filing an issue, consider whether the unusual behavior you've found might actually be an issue in the underlying spec text. If the spec is right but this code is wrong, then it's an issue for this code. If the spec is wrong, then the code is likely to be "right" insofar as it's supposed to follow the spec text.