0.0.18 • Published 5 years ago

opds-feed-parser v0.0.18

Weekly downloads
138
License
Apache-2.0
Repository
github
Last release
5 years ago

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.