
Product
Introducing Repository Labels and Security Policies
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
jsonify-that-feed
Advanced tools
A simple library for turning Atom, RSS and JSON feeds into JSON Feed.
Parse Atom
, RSS
, JSON
feeds to JSON Feed 1.1
.
Or OPML
to JSON
and vice versa.
This module is specifically developed for Ghost Reader
# with npm: npm i jsonify-that-feed
yarn add jsonify-that-feed
import axios from 'axios';
import * as 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": "1",
"content_html"?: "<p>Hello, world!</p>",
"url"?: "https://example.org/initial-post"
}
]
}
*/
const json = jsonify.opmlToJson(data);
console.log(json);
/**
{
version: 2,
head: { title: 'Ghost Reader Subscriptions' },
body: {
outline: [
{
text: 'Example',
title: 'Example',
type: 'rss',
xmlUrl: 'https://example.com/feed',
htmlUrl: 'https://example.com',
},
],
},
}
*/
const opml = jsonify.jsonToOpml(data);
console.log(opml);
/**
<version>2</version>
<head>
<title>Ghost Reader Subscriptions</title>
</head>
<body>
<outline>
<text>Example</text>
<title>Example</title>
<type>rss</type>
<xmlUrl>https://example.com/feed</xmlUrl>
<htmlUrl>https://example.com</htmlUrl>
</outline>
</body>
*/
FAQs
A simple library for turning Atom, RSS and JSON feeds into JSON Feed.
The npm package jsonify-that-feed receives a total of 2 weekly downloads. As such, jsonify-that-feed popularity was classified as not popular.
We found that jsonify-that-feed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
Research
Security News
Socket researchers uncovered malicious npm and PyPI packages that steal crypto wallet credentials using Google Analytics and Telegram for exfiltration.
Product
Socket now supports .NET, bringing supply chain security and SBOM accuracy to NuGet and MSBuild-powered C# projects.