Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0zelot/daily-news-ts
Library for displaying Google News RSS, weather, cryptocurrency rates, current moon phase etc.
https://github.com/0zelot/daily-news-ts
api cryptocurrency-prices google-news json-api meme-generator moon-phase radio-station song-lyrics television-stations weather-forecast
Last synced: 9 days ago
JSON representation
Library for displaying Google News RSS, weather, cryptocurrency rates, current moon phase etc.
- Host: GitHub
- URL: https://github.com/0zelot/daily-news-ts
- Owner: 0zelot
- License: mit
- Created: 2020-11-18T11:04:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-26T15:18:38.000Z (almost 2 years ago)
- Last Synced: 2024-12-12T02:02:21.595Z (14 days ago)
- Topics: api, cryptocurrency-prices, google-news, json-api, meme-generator, moon-phase, radio-station, song-lyrics, television-stations, weather-forecast
- Language: TypeScript
- Homepage: https://open-api.klonba.xyz
- Size: 643 KB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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)**
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)**
Units types: `C`, `F`.
Example:
```
await news.getWeather("city", "en", "f", "London")await news.getWeather("location", "es", "c", "55,37")
```* **getMoon()**
Example:
```
await news.getMoon()
```* **getCrypto()**
Example:
```
await news.getCrypto()
```* **getRadio(COUNTRY, NAME)**
Example:
```
await news.getRadio("DE", "1LIVE")
```* **getTV(NAME || ALL)**
Example:
```
await news.getTV("TVN_SIEDEM")
```* **getLyrics(QUERY, ONLY LYRICS?, LIMIT)**
Example:
```
await news.getLyrics("never gonna give you up", false, 1)
```
Released on the [MIT license](https://choosealicense.com/licenses/mit/).
See at [NPMJS](https://www.npmjs.com/package/daily-news-ts).
See at [GITHUB](https://github.com/0zelot/daily-news-ts).
See [API DOCS](https://open-api.klonba.xyz).