is-opds-agent
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

README.md

check user-agent is opds reader

install

yarn add is-opds-agent
yarn-tool add is-opds-agent
yt add is-opds-agent
import isOPDSAgent from 'is-opds-agent';
import assert from 'assert';

let ua = `OPDS/Stanza iPhone/Aldiko/Moon+ Reader(Android)`;

let result = isOPDSAgent(ua);

console.log(ua , `=>`, !!result, result);

assert(result);

/is-opds-agent/

    Package Sidebar

    Install

    npm i is-opds-agent

    Weekly Downloads

    7

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    5.65 kB

    Total Files

    6

    Last publish

    Collaborators

    • bluelovers