@creamcropdev/json

    1.0.0 • Public • Published

    JSON

    The JSON feed parser for the creamcrop package.

    codecov

    Installation

    Installation is avaliable through npm, yarn, or pnpm:

    npm i @creamcropdev/json
    yarn add @creamcropdev/json
    pnpm add @creamcropdev/json

    Usage

    NodeJS:

    const parser = require('@creamcropdev/json')
    
    (async () => {
    
        let feed = await parser.parse('https://www.jsonfeed.org/feed.json')
    
        console.log(feed.items) // Logs JSON of all items
        console.log('Number of Items:' + feed.itemlength) // Returns number of items in the feed
    
    })();

    The feed parser supports versions 1 and 1.1 of JSON feeds, see the docs for more.

    Install

    npm i @creamcropdev/json

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    GPL-3.0

    Unpacked Size

    17.4 kB

    Total Files

    16

    Last publish

    Collaborators

    • quantalabs