2.1.0 • Published 6 years ago

fullrss v2.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 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

6 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.2

8 years ago

1.0.0

9 years ago

0.5.0

9 years ago

0.4.3

9 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago