New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

captionedfileformat

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

captionedfileformat

A JavaScript-TypeScript wrapper for the Captioned File (CPTN) file format

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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));

Keywords

file

FAQs

Package last updated on 11 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts