opds-feed-parser
TypeScript icon, indicating that this package has built-in type declarations

0.0.18 • Public • Published

opds-feed-parser

Javascript OPDS feed parser. Covers OPDS 1.1.

Usage

npm install opds-feed-parser

Example:

var Parser = require("opds-feed-parser").default;
var request = require("request");

var parser = new Parser();
request("http://feedbooks.github.io/opds-test-catalog/catalog/acquisition/blocks.xml", (error, response, body) => {
    var promise = parser.parse(body);
    promise.then((result) => {
        console.dir(result);
    });

Setup

Requires Node 4.1 or higher.

On Mac:

brew install node

On Ubuntu:

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install nodejs

License

Copyright © 2015 The New York Public Library, Astor, Lenox, and Tilden Foundations

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Readme

Keywords

none

Package Sidebar

Install

npm i opds-feed-parser

Weekly Downloads

285

Version

0.0.18

License

Apache-2.0

Unpacked Size

161 kB

Total Files

110

Last publish

Collaborators

  • aslagle
  • leonardr
  • skomputer
  • thespicemustflow