# daily-news-ts

> Multi-purposal library for displaying google news, weather forecast, cryptocurrency rates, moon phase, etc.

Latest version **2.0.3** (published 2022-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install daily-news-ts
pnpm add daily-news-ts
yarn add daily-news-ts
bun add daily-news-ts
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2022-12-26 |
| First published | 2020-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 91.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 5 |
| Author | Ozelot |
| Maintainers | ozelot |
| Keywords | daily news, searching news, google feed news rss, google news, weather, weather forecast, current weather, moon, moon phase, moon info, full moon, moon calc, crypto, cruptocurrency, cryptocurrency rates, bitcoin rates, ethereum rates, bitcoin cash rates, litecoin rates, stellar rates, bitcoin, radio, radio last played, eska, rmf fm, rmf maxxx, vox fm, radio zet, down services, downdetector, down detector, television program, tv program, tvp 1, tvp 2, polsat, tvn, tvn siedem |

## Links

- npm: https://www.npmjs.com/package/daily-news-ts
- Repository: https://github.com/0zelot/daily-news-ts
- Homepage: https://github.com/0zelot/daily-news-ts#readme
- Issues: https://github.com/0zelot/daily-news-ts/issues
- npm.io page: https://npm.io/package/daily-news-ts

## Dependencies (5)

- [colors](https://npm.io/package/colors.md) ^1.4.0
- [typescript](https://npm.io/package/typescript.md) ^4.0.5
- [@types/node](https://npm.io/package/@types/node.md) ^14.14.7
- [genius-lyrics](https://npm.io/package/genius-lyrics.md) ^4.2.9
- [@types/node-fetch](https://npm.io/package/@types/node-fetch.md) ^2.5.10

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.0.3 (latest) — 2022-12-26
- 2.0.2 — 2022-04-03
- 2.0.1 — 2022-01-03
- 2.0.0 — 2021-06-14
- 1.1.1 — 2020-12-20
- 1.1.0 — 2020-12-12
- 1.0.9 — 2020-12-12
- 1.0.8 — 2020-11-27
- 1.0.7 — 2020-11-18
- 1.0.6 — 2020-11-18
- 1.0.5 — 2020-11-18
- 1.0.4 — 2020-11-18
- 1.0.3 — 2020-11-18
- 1.0.1 — 2020-11-18
- 1.0.0 — 2020-11-18

## README

# Description
Simple library for [open-api.klonba.xyz](https://open-api.klonba.xyz).

# Installation and usage

`npm install daily-news-ts --save`

```
const news = require("daily-news-ts")
```

# Guide

* **getNews(LANG, COUNTRY, ALL | TOPIC, QUERY)**<br>
    Example:
    ```
    await news.getNews("pt", "br", "SPORTS")

    await news.getNews("en", "us", "ALL", "SpaceX")
    ```
    Topics: `WORLD`, `NATION`, `BUSINESS`, `TECHNOLOGY`, `ENTERTAINMENT`, `SPORTS`, `SCIENCE`, `HEALTH`


* **getWeather(TYPE, LANG, UNITS, QUERY)**<br>
    Units types: `C`, `F`.<br><br>
    Example:
    ```
    await news.getWeather("city", "en", "f", "London")

    await news.getWeather("location", "es", "c", "55,37")
    ```

* **getMoon()**<br>
    Example:
    ```
    await news.getMoon()
    ```

* **getCrypto()**<br>
    Example:
    ```
    await news.getCrypto()
    ```

* **getRadio(COUNTRY, NAME)**<br>
    Example:
    ```
    await news.getRadio("DE", "1LIVE")
    ```

* **getTV(NAME || ALL)**<br>
    Example:
    ```
    await news.getTV("TVN_SIEDEM")
    ```

* **getLyrics(QUERY, ONLY LYRICS?, LIMIT)**<br>
    Example:
    ```
    await news.getLyrics("never gonna give you up", false, 1)
    ```

    <br>
<hr>

Released on the [MIT license](https://choosealicense.com/licenses/mit/).<br>
See at [NPMJS](https://www.npmjs.com/package/daily-news-ts).<br>
See at [GITHUB](https://github.com/0zelot/daily-news-ts).<br>
See [API DOCS](https://open-api.klonba.xyz).

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