1.2.1 • Published 8 years ago

podcast-chapter-parser-psc v1.2.1

Weekly downloads
9
License
MIT
Repository
-
Last release
8 years ago

Podcast Chapter Parser for psc

Podcast Chapter Parser for Podlove Simple Chapters.

Installation

npm install podcast-chapter-parser-psc

Example

// 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('<psc:chapters xmlns:psc="http://podlove.org/simple-chapters" version="1.2">' 
  + '<psc:chapter title="Intro" start="00:00:01.200"/>'
  + '<psc:chapter title="Say Hello" start="00:00:02.000" href="http://example.com"/>' 
  + '</psc:chapters>');
// =>
// [
//     { start: 1200, title: "Intro" },
//     { start: 2000, title: "Say Hello", href: "http://example.com" }
// ]

Development

npm install
npm test
1.2.1

8 years ago

1.2.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago