eth-unit-convertor-antier
v1.0.4
Published
this a simple eth-unit-convertor
Downloads
9
Maintainers
Readme
Eth Unit Converter - AntiEr
Eth Unit Converter is a package that allows you to convert Ethereum values into different units.
Installation
To install Eth Unit Converter, you can use npm:
npm i eth-unit-convertor-antier
Example Usage
// Import the UnitConverter
const UnitConverter = require('eth-unit-convertor-antier');
// Create an instance of the UnitConverter
const ethConverter = new UnitConverter();
// Convert 1 Ether to Wei
console.log(ethConverter.toWei(1));
Expected Output:
1000000000000000000
Supported Units
Eth Unit Converter supports the following units:
- Wei
- Kwei (Babbage)
- Mwei (Lovelace)
- Gwei (Shannon)
- Szabo (Microether)
- Finney (Milliether)
- Ether