2.1.0 • Published 5 years ago

fullrss v2.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

fullrss

Node Version Build Status Coverage Status Dependency Status

Generator full rss feed.

THIS PACKAGE IS NO LONGER MAINTAINED

Install

$ npm install --save fullrss

Usage

const fullrss = require('fullrss');

(async () => {
  const feed = await fullrss({
    url: 'http://domain.com/feed',
    token: 'token',
    max: 5,
  });

  // ...
})();

API

fullrss(options)

options

url

Type: string

Address feed

token

Type: string

Token to obtain the full text via Mercury.

max

Type: number
Default: 0

The maximum number of feed items. If 0 is specified, all items will be processed.

cache

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);
  }
}

License

MIT © Timofey Dergachev

2.1.0

5 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.0

7 years ago

0.5.0

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago