jsonfeed-validator
JSON Feed validator
Installation
$ npm install jsonfeed-validator --save
Usage
const validate = const feed = version: 'https://jsonfeed.org/version/1' title: 'My Example Feed' home_page_url: 'https://example.org/' feed_url: 'https://example.org/feed.json' items: content_html: '<p>Hello, world!</p>' url: 'https://example.org/initial-post' const results = /* [ 'should have required property \'id\' at path \'.items[0]\'' ]*/
API
validate(feed)
feed
Type: object
JSON Feed to be validated.