Generator full rss feed.
THIS PACKAGE IS NO LONGER MAINTAINED
$ npm install --save fullrss
const fullrss = require('fullrss');
(async () => {
const feed = await fullrss({
url: 'http://domain.com/feed',
token: 'token',
max: 5,
});
// ...
})();
Type: string
Address feed
Type: string
Token to obtain the full text via Mercury.
Type: number
Default: 0
The maximum number of feed items. If 0
is specified, all items will be processed.
Type: object
Default: { get(key) {}, set(key, value) {} }
To avoid unnecessary queries to mercury
, you can use the cache. Methods can return a promise. The key
is calculated based on the modified date and id. For example:
const store = require('...');
class Cache {
get(key) {
return store.get(key);
}
set(key, value) {
store.set(key, value);
}
}