tylim88 / crypto-symbol Goto Github PK
View Code? Open in Web Editor NEW:baby_chick: Provide easy conversion between crypto symbol and name, auto update daily
Home Page: https://www.npmjs.com/package/crypto-symbol
License: MIT License
:baby_chick: Provide easy conversion between crypto symbol and name, auto update daily
Home Page: https://www.npmjs.com/package/crypto-symbol
License: MIT License
Hi, is there a way to get multiple tickers using the symbolLookup() function? i have some strings that have more than 1 ticker on it,
example: 'Price analysis 9/14: BTC, ETH, BNB, XRP, ADA, SOL, DOGE, DOT, MATIC, SHIB' but when i run the function it returns undefined.
I'm trying to use this library in my Vite app, but it seems like it needs axios
as a dependency:
✘ [ERROR] Could not resolve "axios"
node_modules/crypto-symbol/dist/1_sync/1_fetch.js:34:75:
34 │ const axios = (await Promise.resolve().then(() => __importStar(require('axios')))).default;
╵ ~~~~~~~
You can mark the path "axios" as external to exclude it from the bundle, which will remove this
error. You can also surround this "require" call with a try/catch block to handle this failure at
run-time instead of bundle-time.
8:38:47 PM [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/crypto-symbol/dist/1_sync/1_fetch.js:34:75: ERROR: Could not resolve "axios"
at failureErrorWithLog (/home/daniel/Documents/JS/wwwallet-fe/node_modules/esbuild/lib/main.js:1600:15)
at /home/daniel/Documents/JS/wwwallet-fe/node_modules/esbuild/lib/main.js:1246:28
at runOnEndCallbacks (/home/daniel/Documents/JS/wwwallet-fe/node_modules/esbuild/lib/main.js:1031:63)
at buildResponseToResult (/home/daniel/Documents/JS/wwwallet-fe/node_modules/esbuild/lib/main.js:1244:7)
at /home/daniel/Documents/JS/wwwallet-fe/node_modules/esbuild/lib/main.js:1353:14
at /home/daniel/Documents/JS/wwwallet-fe/node_modules/esbuild/lib/main.js:663:9
at handleIncomingPacket (/home/daniel/Documents/JS/wwwallet-fe/node_modules/esbuild/lib/main.js:760:9)
at Socket.readFromStdout (/home/daniel/Documents/JS/wwwallet-fe/node_modules/esbuild/lib/main.js:629:7)
at Socket.emit (events.js:400:28)
at addChunk (internal/streams/readable.js:293:12)
Vite Error, /node_modules/.vite/deps/crypto-symbol.js?v=2dfff904 optimized info should be defined```
Nano recently changed it's ticker to XNO instead of Nano.
There is currently also a token under XNO called "Xeno Token".
That, in of itself is fine. I'd like to override the XNO ticker to have a name of "Nano" as I don't care about this particular token.
Because the code is basically Object.assign based on the "name-symbol" pair, it's keying off of the name specifically for an overwrite.
This means it is overriding the ticker for Nano (NANO) to be XNO, the swapKeyAndValue function will hit "XNO": "Nano", and override it to be "XNO": "Xeno Token" as it is further down the list.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.