opds

Node.js library to parse/generate OPDS feed

Showing:

Popularity

Downloads/wk

2

GitHub Stars

17

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

3

Size (min+gzip)

66.9KB

License

Apache-2.0

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-opds

This is a library to parse or generate OPDS feed. It makes it easy to generate a feed from a list of book., it also handles correctly BISAC subjects.

How to install it?

$ npm install opds

How to use it?

⚠️ This example is incomplete to pass OPDS Validation (http://opds-validator.appspot.com).

var opds = require("opds");

var xml = opds.create({
    title: "My Catalog",
    author: {
        name: "Samy Pesse",
        uri: "https://www.gitbook.com"
    },
    books: [
        {
            title: "A book",
            summary: "This is a test book",
            updated: new Date(),
            author: {
                name: "Aaron O'Mullan",
                uri: "https://www.gitbook.com/@aaron"
            },
            links: [
                {
                    rel: "image",
                    href: "/book/test.jpg",
                    type: "image/jpeg"
                },
                {
                    rel: "acquisition/buy",
                    href: "/book/test.epub",
                    type: "application/epub+zip"
                }
            ],
            categories: [
                "FIC020000"
            ]
        }
    ]
});

You can also parse an OPDS feed:


var feed = opds.parse('...');

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial