https://github.com/eteubert/podcast-chapter-parser-hindenburg
Parse chapters from Hindenburg project files into JSON
https://github.com/eteubert/podcast-chapter-parser-hindenburg
chapters hindenburg javascript parser podcast
Last synced: 12 months ago
JSON representation
Parse chapters from Hindenburg project files into JSON
- Host: GitHub
- URL: https://github.com/eteubert/podcast-chapter-parser-hindenburg
- Owner: eteubert
- Created: 2017-03-30T08:06:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-26T19:30:35.000Z (over 2 years ago)
- Last Synced: 2025-04-28T18:56:24.426Z (about 1 year ago)
- Topics: chapters, hindenburg, javascript, parser, podcast
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Podcast Chapter Parser for Hindenburg project files
Podcast Chapter Parser for [Hindenburg](https://hindenburg.com).
## Installation
```bash
npm install podcast-chapter-parser-hindenburg
```
## Example
```js
// for node, use xmldom; in a browser, pass window.DOMParser
var DOMParser = require('xmldom').DOMParser;
var hindenburg = require('podcast-chapter-parser-hindenburg').parser(DOMParser);
var chapters = hindenburg.parse('\n\n \n\t \n\t \n \n');
// =>
// [
// { start: 1200, title: "Intro" },
// { start: 2400, title: "Say Hello", href: "http://example.com" }
// ]
```
## Development
```
npm install
npm test
```