{"repo":"fent/feedme.js","free":true,"listed":false,"github":"https://github.com/fent/feedme.js","clone":"git clone https://github.com/fent/feedme.js.git","description":"RSS/Atom/JSON feed parser","language":"TypeScript","stars":166,"topics":["node","feed-reader","atom","rss"],"license":"MIT","category":"productivity","readme_excerpt":"FeedMe.js feedme.js is an RSS/Atom/JSON feed parser. How is this different from the other few feed parsers? It uses sax-js for xml parsing and clarinet for json parsing. That means it is coded in pure Javascript and thus more deployable. I needed a parser that wouldn't require me to install external dependencies or to compile anything. Usage API new FeedMe([buffer]) Creates a new instance of the FeedMe parser. buffer can be true if you want the parser to buffer the entire feed document as a JSON object, letting you use the FeedMe#done() method. parser.write(xml) Write to the parser. parser.done() Can only be used if buffer is true . It returns the feed as a Javascript object, should be called after end is emitted from the parser. Subelements are put as children objects with their names as keys. When one object has more than one child of the same name, they are put into an array. Items are always put into an array. An example of what parser.done() could return. Event: 'item' Object - Item from the feed. Emitted whenever the parser finds a new feed item. An item can be inside an or tag. Event: tagname Object - The object containing the value of the tag found. Emitted whenever a tag on the root of the document is finished parsing. The root being the or tag. Example: Event: 'type' string - Type of feed. Example: atom, rss 2.0, json. Event: 'error' Error Emitted when there is an error parsing the document. Install npm install feedme Tests Tests are written with mocha","default_branch":null,"files":null,"tree":[],"storefront":"/r/fent","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fent/feedme.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}