Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Crypto Expansion Pack - Numi.io
numi.addUnit({
"id": "wei",
"phrases": "wei, Wei",
"baseUnitId": "ETH",
"format": "Wei",
"ratio": 1e-18,
});
numi.addUnit({
"id": "gwei",
"phrases": "nanoether, Nanoether, shannon, Shannon, nano, Nano, gwei, Gwei",
"baseUnitId": "ETH",
"format": "Gwei",
"ratio": 1e-9,
});
numi.addUnit({
"id": "kwei",
"phrases": "babbage, Babbage, kwei, Kwei",
"baseUnitId": "ETH",
"format": "Kwei",
"ratio": 1e-15,
});
numi.addUnit({
"id": "mwei",
"phrases": "lovelace, Lovelace, mwei, Mwei",
"baseUnitId": "ETH",
"format": "Mwei",
"ratio": 1e-12,
});
numi.addUnit({
"id": "szabo",
"phrases": "microether, Microether, szabo, Szabo, micro, Micro",
"baseUnitId": "ETH",
"format": "Szabo",
"ratio": 1e-6,
});
numi.addUnit({
"id": "finney",
"phrases": "milliether, Milliether, finney, Finney, milli, Milli",
"baseUnitId": "ETH",
"format": "Finney",
"ratio": 1e-3,
});
numi.addUnit({
"id": "ether",
"phrases": "ether, Ether",
"baseUnitId": "ETH",
"format": "Ether",
"ratio": 1,
});
numi.addUnit({
"id": "satoshi",
"phrases": "satoshi, satoshis, sato, sat, bit",
"baseUnitId": "BTC",
"format": "sat",
"ratio": 0.00000001,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment