@ethersproject/units
Unit conversion functions for Ethereum.
Last updated 8 years ago by ricmoo .
MIT · Original npm · Tarball · package.json
$ npm install @ethersproject/units 
SYNC missed versions from official npm registry.

Ethereum Unit Conversion Utilities

This sub-module is part of the ethers project.

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 {

    formatUnits,
    parseUnits,

    formatEther,
    parseEther,

    commify

} = require("@ethersproject/units");

License

MIT License

Current Tags

  • 5.8.0                                ...           latest (2 years ago)

38 Versions

  • 5.8.0                                ...           2 years ago
  • 5.7.0                                ...           4 years ago
  • 5.6.1                                ...           5 years ago
  • 5.6.0                                ...           5 years ago
  • 5.5.0                                ...           5 years ago
  • 5.4.0                                ...           5 years ago
  • 5.3.0                                ...           5 years ago
  • 5.2.0                                ...           6 years ago
  • 5.1.0                                ...           6 years ago
  • 5.0.11                                ...           6 years ago
  • 5.0.10                                ...           6 years ago
  • 5.0.9                                ...           6 years ago
  • 5.0.8                                ...           6 years ago
  • 5.0.7                                ...           6 years ago
  • 5.0.6                                ...           6 years ago
  • 5.0.5                                ...           6 years ago
  • 5.0.4                                ...           6 years ago
  • 5.0.3                                ...           6 years ago
  • 5.0.2                                ...           6 years ago
  • 5.0.1                                ...           6 years ago
  • 5.0.0                                ...           6 years ago
  • 5.0.0-beta.133                                ...           7 years ago
  • 5.0.0-beta.132                                ...           7 years ago
  • 5.0.0-beta.131                                ...           7 years ago
  • 5.0.0-beta.130                                ...           7 years ago
  • 5.0.0-beta.129                                ...           7 years ago
  • 5.0.0-beta.128                                ...           7 years ago
  • 5.0.0-beta.127                                ...           7 years ago
  • 5.0.0-beta.126                                ...           7 years ago
  • 5.0.0-beta.125                                ...           7 years ago
  • 5.0.0-beta.124                                ...           8 years ago
  • 5.0.0-beta.123                                ...           8 years ago
  • 5.0.0-beta.122                                ...           8 years ago
  • 5.0.0-beta.121                                ...           8 years ago
  • 5.0.0-beta.120                                ...           8 years ago
  • 5.0.0-beta.119                                ...           8 years ago
  • 5.0.0-beta.118                                ...           8 years ago
  • 5.0.0-beta.117                                ...           8 years ago
Maintainers (1)
Downloads
Total 79
Today 0
This Week 0
This Month 63
Last Day 0
Last Week 54
Last Month 13
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE