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
- Host: GitHub
- URL: https://github.com/eteubert/podcast-chapter-parser-psc
- Owner: eteubert
- Created: 2016-12-29T04:54:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T14:02:35.000Z (over 9 years ago)
- Last Synced: 2025-04-28T18:56:06.288Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```