# ethereum-units

> Ethereum unit conversion

Latest version **0.0.1-b** (published 2015-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install ethereum-units
pnpm add ethereum-units
yarn add ethereum-units
bun add ethereum-units
```

Provides the command `ethunits`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-b |
| Published | 2015-09-09 |
| First published | 2015-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ryan Casey |
| Maintainers | ryepdx |
| Keywords | ethereum, unit, conversion |

## Links

- npm: https://www.npmjs.com/package/ethereum-units
- Repository: https://github.com/ryepdx/ethereum-units
- Homepage: https://github.com/ryepdx/etheruem-units#readme
- Issues: https://github.com/ryepdx/ethereum-units/issues
- npm.io page: https://npm.io/package/ethereum-units

## Dependencies (1)

- [bigdecimal](https://npm.io/package/bigdecimal.md) ^0.6.1

## Recent versions

- 0.0.1-b (latest) — 2015-09-09
- 0.0.1 — 2015-09-09

## README

# 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
```node
ethunits = require('ethereum-units');
ethunits.convert(1, 'babbage', 'wei');
```

Returns [BigDecimal](https://github.com/iriscouch/bigdecimal.js) objects.

---
_Source: https://npm.io/package/ethereum-units · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
