@stanislavkarol/get-bash-im-rss
v1.1.21
Published
Возвращает промис-массив содержимого rss-ленты bash.im
Downloads
6
Readme
get bash.im rss
Модуль обращается к цитатнику рунета bash.im и возвращает в промисе массив содержимого ленты. Структура содержимого:
{
id: "string"; // id заметки
title: "string"; // заголовок заметки
contents: "string"; // заметка
}
Install
npm install @stanislavkarol/get-bash-im-rss -S
Example
const getListBashOrg = require("@stanislavkarol/get-bash-im-rss");
getListBashOrg().then((k) => {
console.log(k.length);
if (k.length) {
console.log(k[0].content);
}
});
В качестве параметра функция может принимать url другого цитатника: ithappens.me