Parse psc (podlove simple chapters) format into JSON
npm install podcast-chapter-parser-pscPodcast Chapter Parser for Podlove Simple Chapters.
``bash`
npm install podcast-chapter-parser-psc
`js
// for node, use xmldom; in a browser, pass window.DOMParser
var DOMParser = require('xmldom').DOMParser;
var psc = require('podcast-chapter-parser-psc').parser(DOMParser);
var chapters = psc.parse('
+ '
+ '
+ '
// =>
// [
// { start: 1200, title: "Intro" },
// { start: 2000, title: "Say Hello", href: "http://example.com" }
// ]
`
```
npm install
npm test