upoliop
v1.0.0
Published
A simple npm package for fetching cryptocurrency data.
Readme
upoliop
A simple npm package for fetching cryptocurrency data.
Installation
To install upoliop, you can use npm:
npm install upoliopUsage
const getCryptoData = require('upoliop');
// Example usage:
(async () => {
const bitcoinData = await getCryptoData('bitcoin');
console.log(bitcoinData);
})();API
getCryptoData(coin)
coin(string): The symbol of the cryptocurrency you want to fetch data for (e.g., 'bitcoin', 'ethereum').
Returns an object containing information about the specified cryptocurrency, including its name, symbol, current price, market cap, and total volume.
Dependencies
- axios: Promise-based HTTP client for Node.js and browsers.
- lodash: A modern JavaScript utility library delivering modularity, performance & extras.
- moment: Parse, validate, manipulate, and display dates and times in JavaScript.
License
This project is licensed under the MIT License - see the LICENSE file for details.
