Package Exports
- daily-news-ts
- daily-news-ts/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (daily-news-ts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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,HEALTHgetWeather(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.
See at NPMJS.
See at GITHUB.
See API DOCS.