# alt-price-checker

> check alt price

Latest version **1.0.2** (published 2024-03-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install alt-price-checker
pnpm add alt-price-checker
yarn add alt-price-checker
bun add alt-price-checker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2024-03-16 |
| First published | 2024-03-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | liuweilian |
| Maintainers | xiaoxiaoweb3 |

## Links

- npm: https://www.npmjs.com/package/alt-price-checker
- Repository: https://github.com/liuweilian/alt-price-checker
- Homepage: https://github.com/liuweilian/alt-price-checker/blob/main/README.md
- Issues: https://github.com/liuweilian/alt-price-checker/issues
- npm.io page: https://npm.io/package/alt-price-checker

## Dependencies (9)

- [axios](https://npm.io/package/axios.md) ^1.6.7
- [chalk](https://npm.io/package/chalk.md) ^5.3.0
- [shell-oooooyoung](https://npm.io/package/shell-oooooyoung.md) ^1.1.9
- [strk-price-check](https://npm.io/package/strk-price-check.md) ^1.0.0
- [bnb-price-checker](https://npm.io/package/bnb-price-checker.md) ^1.0.3
- [btc-price-checker](https://npm.io/package/btc-price-checker.md) ^1.0.4
- [jup-price-checker](https://npm.io/package/jup-price-checker.md) ^1.0.1
- [sol-price-checker](https://npm.io/package/sol-price-checker.md) ^1.0.2
- [pyth-price-checker](https://npm.io/package/pyth-price-checker.md) ^1.0.3

## Recent versions

- 1.0.2 (latest) — 2024-03-16
- 1.0.0 — 2024-03-14
- 1.0.1 — 2024-03-14

## README

```
# alt Price Checker

[![npm version](https://img.shields.io/npm/v/alt-price-checker.svg?style=flat-square)](https://www.npmjs.com/package/alt-price-checker)

A simple package to retrieve the current price of Bitcoin (alt).

## Installation

Install the package using npm:

```
npm install alt-price-checker
```

## Usage

To use the package, you need to import it:

```javascript
const ethPriceChecker = require('alt-price-checker');
```

Then, you can call the `getPythPrice()` function to retrieve the current price of Bitcoin:

```javascript
ethPriceChecker.getPythPrice()
  .then(price => {
    console.log(`The current price of alt is $${price}`);
  })
  .catch(error => {
    console.error('Error fetching alt price:', error);
  });
```

## API Documentation

The package provides the following function:

### `getPythPrice()`

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 `getPythPrice()` function:

```javascript
const ethPriceChecker = require('alt-price-checker');

ethPriceChecker.getPythPrice()
  .then(price => {
    console.log(`The current price of alt is $${price}`);
  })
  .catch(error => {
    console.error('Error fetching alt 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.
```

---
_Source: https://npm.io/package/alt-price-checker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
