Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@creamcropdev/json

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

@creamcropdev/json

A JSON 1.1 feed parser.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

json

FAQs

Package last updated on 29 Aug 2021

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