1.0.0 • Published 3 years ago
@creamcropdev/json v1.0.0
JSON
The JSON feed parser for the creamcrop package.
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.
1.0.0
3 years ago