Skip to content

Read a feed and call back with a JavaScript object.

License

Notifications You must be signed in to change notification settings

scripting/feedRead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feedRead

If you came here looking for a super-simple way to read a feed in Node.js, this is no longer the simplest or best API I have. The new package is reallySimple it's open source too, and it builds on this package, so this is still being maintained.

If you're using this package and are happy, keep using it. ;-)

6/22/23 by DW

What is this?

It's a Node package that contains everything you need to read a feed.

It builds on the feedParser package. It's simpler to call, no need to master streams or iconv.

You can also parse a string, so you can deal with files that contain feed data, not just feeds accessible over the web. Or the feed text could come from a database.

Because we use feedParser, we handle all the formats and variability that it handles.

It's an entry-level feed parser that will be useful to people who haven't mastered all of JavaScript.

Why?

Sometimes you need to quickly read a feed and do something with it, and don't have time for a major project. This package is for those times.

It also provides good sample code for more advanced feed reading projects.

Example code

There are two very basic examples, one that parses a feed that it reads over the web, and one that it reads from a local file.

A third example is a realistic feed polling app, it checks a feed every five minutes and writes the JSON structure out to a local disk. It automatically supports rssCloud, so you get realtime updates if the feed supports that protocol, which is part of RSS 2.0.

About

Read a feed and call back with a JavaScript object.

Resources

License

Stars

Watchers

Forks

Packages

No packages published