@domchristie/toc

1.1.0 • Public • Published

ToC

Generate podcast namespace compatible JSON chapters from those embedded in MP3 file ID3 tags.

Usage

npm install @domchristie/toc
const ToC = require('@domchristie/toc')

ToC.from(URL_OR_PATH_TO_MP3_FILE)
  .then(toc => toc.toJSON())

API

ToC.from(URL_OR_PATH_TO_MP3_FILE)

Returns a promise that resolves to a ToC instance once the given file has been parsed

ToC#toJSON

Returns a stringified JSON representation

ToC#valueOf

Returns an object reresentation

Package Sidebar

Install

npm i @domchristie/toc

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

2.85 kB

Total Files

5

Last publish

Collaborators

  • domchristie