JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 409
  • Score
    100M100P100Q100997F
  • License MIT

Unit conversion functions for Hedera Hashgraph.

Package Exports

  • @hethers/units
  • @hethers/units/lib.esm/index.js
  • @hethers/units/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hethers/units) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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