Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

grandchild/AVS-File-Decoder

Open more actions menu

Repository files navigation

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.

Installation

Use your preferred Node package manager to install the package:

npm install @visbot/webvsc@next

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

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.