@hethers/units
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Unit Conversion Utilities

This sub-module is part of the hethers project. It is a fork of the original ethers project sub-module.

It contains functions to convert between string representations and numeric representations of numbers, including those out of the range of JavaScript.

For more information, see the documentation.

Importing

Most users will prefer to use the umbrella package, but for those with more specific needs, individual components can be imported.

const {
    commify,
    formatUnits,
    parseUnits,
    formatHbar,
    parseHbar
} = require("@hethers/units");

License

MIT License

Package Sidebar

Install

npm i @hethers/units

Weekly Downloads

897

Version

1.2.0

License

MIT

Unpacked Size

20.4 kB

Total Files

21

Last publish

Collaborators

  • kalinatodorova
  • daniel.k.ivanov