Provide easy conversion between crypto symbol and name, auto update daily
MIT License
simplify sync
API (you still need to install axios
)
old API:
import axios from 'axios'
const { sync } = cryptoSymbol({})
sync('coinmarketcap apiKey', axios)
new API:
const { sync } = cryptoSymbol({})
sync('coinmarketcap apiKey')
Published by tylim88 over 2 years ago
compile to es5 instead of es6
Published by tylim88 over 2 years ago
remove sourcemap because sourcemap requires src code to be included, which is very redundant and cause issues in create-react-app
Published by tylim88 over 2 years ago
axios is now a parameter instead of a dynamic module (vite cannot handle dynamic import out of the box)
Published by tylim88 over 2 years ago
If duplicated names or symbols are found in the CoinMarketCap list, the library keep only the one with higher rank(larger market cap). This check is case-insensitive. If you need coins with lower rank, you can add it yourself, keep in mind to use unique name and unique symbol for them.
Published by tylim88 over 2 years ago
add sync api, you can use it to sync latest list
Published by tylim88 over 2 years ago
Xeno Token
Nano
symbol to XNO
Published by tylim88 over 2 years ago
stable