Catalog npm
PACKAGE EXPLORERView in registry

-price-checker

npm

check price

Versions collected4
Direct dependencies7From release 1.0.0
Last observed20 Oct, 16:06 UTC

README

Current package documentation
#  Price Checker

[![npm version](https://img.shields.io/npm/v/-price-checker.svg?style=flat-square)](https://www.npmjs.com/package/-price-checker)

A simple package to retrieve the current price of Bitcoin ().

## Installation

Install the package using npm:

npm install -price-checker


## Usage

To use the package, you need to import it:

```javascript
const ethPriceChecker = require('-price-checker');

Then, you can call the getETHPrice() function to retrieve the current price of Bitcoin:

ethPriceChecker.getEthPrice()
  .then(price => {
    console.log(`The current price of Bitcoin is $${price}`);
  })
  .catch(error => {
    console.error('Error fetching  price:', error);
  });

API Documentation

The package provides the following function:

getEthPrice()

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 getEthPrice() function:

const ethPriceChecker = require('-price-checker');

ethPriceChecker.getEthPrice()
  .then(price => {
    console.log(`The current price of  is $${price}`);
  })
  .catch(error => {
    console.error('Error fetching  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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 4

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.0Registry latest14 Mar 20247
1.0.514 Mar 20247
1.0.414 Mar 20246
1.0.314 Mar 20246

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
zsq77/strk-price-check

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:06 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c299fd8273bc052a826d78c378fba67ea06aa1b26ef0e6c5c0dfea54a23fae5a