Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including podcast-chapter-parser-mp4chaps with all npm packages installed. Try it out:

var podcastChapterParserMp4chaps = require("podcast-chapter-parser-mp4chaps")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

podcast-chapter-parser-mp4chaps v1.1.1

Parse mp4chaps podcast chapter format into JSON

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
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free