captionedfileformat

1.0.1 • Public • Published

Captioned File

This is a JavaScript=TypeScript wrapper for the CPTN (CaPTioNed file) file format. For more info about the format check https://github.com/Oakchris1955/Captioned-File

Usage

Initiate:

import CPTN_Buffer from captionedfileformat;

// Create a new CPTN_Buffer
const data = new CPTN_Buffer();

Write data to CPTNBuffer:

data.create_new("Some content...", "Caption 1234");

To read data as Buffer:

const bytes = data.get_bytes();
console.log(bytes);

To read data from bytes:

const new_data = new CPTN_Buffer();
console.log(new_data.read_from_bytes(bytes));

Package Sidebar

Install

npm i captionedfileformat

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.91 kB

Total Files

6

Last publish

Collaborators

  • oakchris1955