2.3.0 • Published 5 months ago

@visbot/webvsc v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

webvsc

npm npm CI

Description

Library to to batch-convert Winamp AVS presets into native Webvs JSON format. Take a look at the supported components.

Live Demo

Installation

Use your preferred Node package manager to install the package:

npm install @visbot/webvsc

Usage

convertPreset(arrayBuffer, fileName, fileDate, [options])

import { convertPreset } from '@visbot/webvsc';
import fs from 'node:fs':

const avsBuffer = await fs.promises.readFile(file);
const presetName = 'My Awesome Preset'; // no file-extension!
const modifiedDate = (await fs.stat(file)).mtime || new Date();

const webvs = convertPreset(avsBuffer, presetName, modifiedDate.toISOString());

Options

hidden

Type: boolean
Default: false

Don't extract hidden strings from fixed-size strings

quiet

Type: boolean
Default: false

Prints errors only

verbose

Type: number
Default: 0

Control the amount of output displayed:

  • 0 Display name of operation (read/write)
  • 1 List detected components
  • 2 List component details

Authors

License

All code is licensed under The MIT License

3.0.0-alpha.5

5 months ago

3.0.0-alpha.3

6 months ago

3.0.0-alpha.2

6 months ago

3.0.0-alpha.4

6 months ago

3.0.0-alpha

1 year ago

2.3.0

4 years ago

2.2.2

5 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.3.1

6 years ago

1.3.0

7 years ago

1.3.0-alpha.4

7 years ago

1.3.0-alpha.3

7 years ago

1.3.0-alpha.2

7 years ago

1.3.0-alpha.1

7 years ago

1.3.0-alpha

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago