npm install tea-pi2``
`BTC Price Checker

A simple package to retrieve the current price of Bitcoin (BTC).
Installation
Install the package using npm:
`
npm install btc-price-checker
`
Usage
To use the package, you need to import it:
javascript
`
const btcPriceChecker = require('btc-price-checker');
getBTCPrice()
Then, you can call the function to retrieve the current price of Bitcoin:
`
javascript
The current price of Bitcoin is $${price}
btcPriceChecker.getBTCPrice()
.then(price => {
console.log();
`
})
.catch(error => {
console.error('Error fetching BTC price:', error);
});
getBTCPrice()
API Documentation
The package provides the following function:
$3
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.
Examples
Here's an example of how to use the function:
`
javascript
The current price of Bitcoin is $${price}
const btcPriceChecker = require('btc-price-checker');
btcPriceChecker.getBTCPrice()
.then(price => {
console.log();
`
})
.catch(error => {
console.error('Error fetching BTC price:', error);
});
``
Contributing
If you wish to contribute to this package, you can follow the guidelines in CONTRIBUTING.md file.
License
This package is licensed under the MIT License.