# jup Price Checker
[![npm version](https://img.shields.io/npm/v/jup-price-checker.svg?style=flat-square)](https://www.npmjs.com/package/jup-price-checker)
A simple package to retrieve the current price of Bitcoin (jup).
## Installation
Install the package using npm:
npm install jup-price-checker
## Usage
To use the package, you need to import it:
```javascript
const ethPriceChecker = require('jup-price-checker');
Then, you can call the getPythPrice()
function to retrieve the current price of Bitcoin:
ethPriceChecker.getPythPrice()
.then(price => {
console.log(`The current price of jup is $${price}`);
})
.catch(error => {
console.error('Error fetching jup price:', error);
});
The package provides the following function:
This function fetches the current price of Bitcoin from a reliable data source. It returns a Promise that resolves to the current price in USD.
Here's an example of how to use the getPythPrice()
function:
const ethPriceChecker = require('jup-price-checker');
ethPriceChecker.getPythPrice()
.then(price => {
console.log(`The current price of jup is $${price}`);
})
.catch(error => {
console.error('Error fetching jup price:', error);
});
If you wish to contribute to this package, you can follow the guidelines in CONTRIBUTING.md file.
This package is licensed under the MIT License.