Skip to content

Instantly share code, notes, and snippets.

@timbury
Forked from scripting/getdavewineropml.js
Created November 14, 2017 20:47
Show Gist options
  • Save timbury/ce3e8e17c4b8c1feeff7a98961b52396 to your computer and use it in GitHub Desktop.
Save timbury/ce3e8e17c4b8c1feeff7a98961b52396 to your computer and use it in GitHub Desktop.
A PagePark page implemented in JavaScript that returns the JSON representation of an OPML outline. See the notes for v0.63 for more info.
var urlOpml = "http://davewiner.com/davewiner.opml";
opmlLib.readOpmlUrl (urlOpml, function (theOutline) {
httpResponse.writeHead (200, {"Content-Type": "application/json", "Access-Control-Allow-Origin": "*"});
httpResponse.end (utils.jsonStringify (theOutline));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment