crypto-normalize

2.4.8 • Public • Published

crypto-normalize

Apparently nobody can agree on crypto naming conventions, this package aggregates popular exchanges and sites and allows you to easily translate from our spec to other parties conventions.

usage

Install me

npm i --save crypto-normalize

Use me

const normalize = require('crypto-normalize')
 
// Translate symbol
normalize.translate("ETH", "kraken.com") // XETH
 
// Get image of coin
normalize.image("ETH") // https://shapeshift.io/images/coins/ether.png
 
// Get all image sizes of coin
normalize.images("ETH") // { large: 'https://shapeshift.io/images/coins/ether.png', small: 'https://shapeshift.io/images/coins-sm/ether.png' }
 
// Small image of coin
normalize.imageSmall("ETH") // https://shapeshift.io/images/coins/ether.png
 
// Translate pair
normalize.pair("ETH", "BTC", "kraken.com") // XETHXXBT
 
// Check for support
normalize.doesSupport("FCT", "kraken.com") // false
normalize.doesSupport("ETH", "kraken.com") // true
 
// Get coin from glossary
normalize.coin("ZEC")
/*
{ name: 'Zcash',
symbol: 'ZEC',
images:
  { large: 'https://shapeshift.io/images/coins/zcash.png',
    small: 'https://shapeshift.io/images/coins-sm/zcash.png' },
service:
  { 'coincap.io': 'ZEC',
    'coinmarketcap.com': 'zcash',
    'kraken.com': 'XZEC',
    'shapeshift.io': 'ZEC' } }
*/

Readme

Keywords

Package Sidebar

Install

npm i crypto-normalize

Weekly Downloads

50

Version

2.4.8

License

MIT

Last publish

Collaborators

  • mdwisniewski