An open API service indexing awesome lists of open source software.

https://github.com/eteubert/podcast-chapter-parser-psc

Parse psc (Podlove Simple Chapters) format into JSON
https://github.com/eteubert/podcast-chapter-parser-psc

Last synced: about 1 year ago
JSON representation

Parse psc (Podlove Simple Chapters) format into JSON

Awesome Lists containing this project

README

          

# Podcast Chapter Parser for psc

Podcast Chapter Parser for [Podlove Simple Chapters](https://podlove.org/simple-chapters/).

## Installation

```bash
npm install podcast-chapter-parser-psc
```

## Example

```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" }
// ]
```

## Development

```
npm install
npm test
```