0.0.0 • Published 1 year ago

@aitube/encoders v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@aitube/encoders

Collection of blob, buffer and base64 utilities. Used by AiTube.at

ATTENTION

AiTube is currently in heavy development, so this library is experimental, and may be subject to unannounced breaking changes.

We are sorry for any inconvenience this might cause.

Installation

To install the package, run the following command:

npm install @aitube/encoders

Getting Started

import {
  addBase64Header,
  extractBase64,
  blobToWebp,
  dataUriToBlob,
  bufferToHeic,
  bufferToJpeg,
  bufferToMp3,
  bufferToMp4,
  bufferToPng,
  bufferToWav,
  bufferToWebm,
  bufferToWebp
} from '@aitube/encoders'

Build Instructions

Install Bun

Run the following commands:

bun install

bun run build

To publish:

bun run build

bun run build:declaration

bun run publish

Contributing

We welcome contributions! Please feel free to submit a pull request.

License

This package is under the MIT License. See LICENSE file for more details.

0.0.0

1 year ago