jsonfeed-to-atom
Convert a JSON feed to an atom feed.
Installation
$ npm install jsonfeed-to-atom
Usage
const jsonfeedToAtom = const someJSONFeed = const atomFeed = // Returns an atom formatted json feed
Example input:
Example output:
bret.io log https://bret.io/feed.xml 2018-04-07T22:06:43.000Z Bret Comnes https://bret.io jsonfeed-to-atom © 2018 Bret Comnes A running log of announcements, projects and accomplishments. https://bret.io/my-text-post-2018-04-07T20:48:02.000Z Wee wooo this is some content. 2018-04-07T20:48:02.000Z 2018-04-07T20:48:02.000Z Wee wooo this is some content. Maybe a new paragraph too https://bret.io/my-blog-post-2018-04-07T22:06:43.000Z This is a blog title 2018-04-07T22:06:43.000Z 2018-04-07T22:06:43.000Z <![CDATA[<p>Hello, world!</p>]]>
API
jsonfeedToAtom(parsedJsonfeed, opts)
Coverts a parsed JSON feed into an atom feed. Returns the string of the atom feed.
Opts include:
// a function that returns the atom feed url feedURL
See also
- JSON Feed: Mapping RSS and Atom to JSON Feed
- AtomEnabled: Developers > Syndication (Archive)
- bcomnes/generate-feed
- Rss20AndAtom10Compared
- bcomnes/jsonfeed-to-rss: For podcasts or if you prefer RSS