podcast-chapter-parser-mp4chaps

Parse mp4chaps podcast chapter format into JSON

Usage no npm install needed!

<script type="module">
  import podcastChapterParserMp4chaps from 'https://cdn.skypack.dev/podcast-chapter-parser-mp4chaps';
</script>

README

Podcast Chapter Parser for mp4chaps

Podcast Chapter Parser for mp4chaps

Installation

npm install podcast-chapter-parser-mp4chaps

Example

var MP4Chaps = require('podcast-chapter-parser-mp4chaps');

var chapters = MP4Chaps.parse("1.2 Intro\n20 Say Hello <http://www.example.com>");
// =>
// [
//     { start: 1200, title: "Intro" },
//     { start: 2000, title: "Say Hello", href: "http://www.example.com" }
// ]

Development

npm install
npm test