ethereum-units

0.0.1-b • Public • Published

ethereum-units

A simple unit converter for Ethereum, because finney, szabo, and wei are less intuitive than SI units for people like me.

CLI

$ npm install -g ethereum-units
$ ethunits 1 babbage wei
1000000 wei
$ ethunits 1 wei
0.000000000000000001 ether
$ ethunits -e 1 wei
1E-18 ether

Node

ethunits = require('ethereum-units');
ethunits.convert(1, 'babbage', 'wei');

Returns BigDecimal objects.

Package Sidebar

Install

npm i ethereum-units

Weekly Downloads

2

Version

0.0.1-b

License

MIT

Last publish

Collaborators

  • ryepdx