New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

opds

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opds

Library to parse/generate OPDS feed

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

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?

:warning: 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('...');

FAQs

Package last updated on 26 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts