@aitube/io
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

@aitube/io

Collection of useful I/O utilities for NodeJS. 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/io

Getting Started

import {
  deleteFile,
  deleteFilesWithName,
  removeTemporaryFiles,
  downloadFileAsBase64,
  convertImageTo,
  convertImageToJpeg,
  convertImageToOriginal,
  convertImageToPng,
  convertImageToWebp,
  resizeImage,
  readJpegFileToBase64,
  readLocalOrRemotePlainText,
  readMp3FileToBase64,
  readMp4FileToBase64,
  readPlainText,
  readPngFileToBase64,
  readWavFileToBase64,
  getRandomDirectory,
  writeBase64ToFile,
} from '@aitube/io'

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.

Readme

Keywords

Package Sidebar

Install

npm i @aitube/io

Weekly Downloads

1

Version

0.2.4

License

MIT

Unpacked Size

441 kB

Total Files

32

Last publish

Collaborators

  • flngr