README
Description
Simple library for 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()
getDownServices()
Example:await news.getDownServices()
getRadio(NAME || ALL)
Example:await news.getRadio("ALL") await news.getRadio("RMF_FM")
Stations:
ESKA
,RMF_FM
,RMF_MAXXX
,ZET
,VOX_FM
getTV(NAME || ALL)
Example:await news.getTV("ALL") await news.getTV("TVN_SIEDEM")
Stations:
TVP_1
,TVP_2
,POLSAT
,TVN
,TVN_SIEDEM
getLyrics(QUERY, ONLY LYRICS?, LIMIT)
Example:await news.getLyrics("Adele", true, 3) await news.getLyrics("faded", false, 1)
Released on the MIT license.
See at NPMJS.
See at GITHUB.