@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    5
  • 1.0.0
    0

Package Sidebar

Install

npm i @domchristie/toc

Weekly Downloads

5

Version

1.1.0

License

MIT

Unpacked Size

2.85 kB

Total Files

5

Last publish

Collaborators

  • domchristie