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

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

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
```