# @creamcropdev/json

> A JSON 1.1 feed parser.

Latest version **1.0.0** (published 2021-08-29) · GPL-3.0  license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @creamcropdev/json
pnpm add @creamcropdev/json
yarn add @creamcropdev/json
bun add @creamcropdev/json
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-08-29 |
| First published | 2021-08-29 |
| Weekly downloads | 0 |
| License | GPL-3.0  |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Quantalabs |
| Maintainers | quantalabs |
| Keywords | json, feed, parser |

## Links

- npm: https://www.npmjs.com/package/@creamcropdev/json
- Repository: https://github.com/creamcropdev/json
- Homepage: https://github.com/creamcropdev/json#readme
- Issues: https://github.com/creamcropdev/json/issues
- npm.io page: https://npm.io/package/@creamcropdev/json

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-08-29

## README

<div align='center'>
    <img src='https://www.jsonfeed.org/uploads/2020/cc9d8e166d.png'>
</div>

# JSON
The JSON feed parser for the creamcrop package.

[![codecov](https://codecov.io/gh/creamcropdev/json/branch/main/graph/badge.svg?token=KFJWW7TWFY)](https://codecov.io/gh/creamcropdev/json)

## Installation

Installation is avaliable through `npm`, `yarn`, or `pnpm`:
```sh
npm i @creamcropdev/json
yarn add @creamcropdev/json
pnpm add @creamcropdev/json
```

## Usage

**NodeJS:**
```javascript
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](https://creamcrop.js.org/json/latest/) for more.

---
_Source: https://npm.io/package/@creamcropdev/json · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
