You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

jsonify-that-feed

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonify-that-feed

A simple library for turning Atom, RSS and JSON feeds into JSON Feed.

1.0.0
Source
npm
Version published
Weekly downloads
8
14.29%
Maintainers
1
Weekly downloads
 
Created
Source

jsonify-that-feed

Parse Atom, RSS and JSON feeds to JSON Feed 1.1.

This module is specifically developed for Ghost Reader

Install

# with npm: npm i jsonify-that-feed
yarn add jsonify-that-feed

Usage Example

import axios from 'axios';
import jsonify from 'jsonify-that-feed';

const { data } = await axios.get(url);
const feed = jsonify.toJson(data);
console.log(feed);
/*
  {
    "version": "https://jsonfeed.org/version/1.1",
    "title": "My Example Feed",
    "home_page_url": "https://example.org/",
    "feed_url"?: "https://example.org/feed.json",
    "items": [
      {
        "id": "2",
        "content_text"?: "This is a second item.",
        "url"?: "https://example.org/second-item"
      },
      {
        "id": "1",
        "content_html"?: "<p>Hello, world!</p>",
        "url"?: "https://example.org/initial-post"
      }
    ]
  }
*/

FAQs

Package last updated on 26 Jan 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