Meme Coin Fetcher is a Node.js package that allows you to retrieve information about meme coins from CoinMarketCap's API.
npm i @neo-cicada/meme-coin-tracker
const { fetchMemeCoinInfo } = require('meme-coin-fetcher');
async function getMemeCoins() {
try {
const memeCoins = await fetchMemeCoinInfo();
console.log(memeCoins);
} catch (error) {
console.error('Error fetching meme coin information:', error);
}
}
getMemeCoins();
This function retrieves information about meme coins from CoinMarketCap's API.
- Returns: An array of meme coins with their information.
If you're building a server-side application, you can use the provided Express endpoints to fetch meme coin information.
-
GET /api/meme-coins
: Retrieves information about all meme coins. -
GET /api/meme-coins/:id
: Retrieves information about a specific meme coin by ID.
Example usage:
curl http://localhost:3001/api/meme-coins
- axios
- dotenv
- express
This package is licensed under the MIT License.