Skip to content

visbot/gulp-avs

Repository files navigation

@visbot/gulp-avs

License Version Build

Gulp plugin to convert Winamp AVS presets into Webvs JSON.

Installation

$ npm install --save-dev @visbot/gulp-avs

Usage

avs(options)

The output file-extension will automatically be set to .webvs, so there's no need for additional plugins.

Example:

Standard usage

// Gulpfile.mjs
import gulp from 'gulp';
import { avs } from '@visbot/gulp-avs';

gulp.task('convert', done => {
	gulp.src('input/**/*.avs')
		.pipe(avs())
		.pipe(gulp.dest('output'));

	done();
});

⚠️ This plugin is now pure ESM. Read how to migrate your Gulpfile.

Options

hidden

Type: boolean
Default: true

Don't extract hidden strings from fixed-size strings

minify

Type: boolean
Default: false

Minify generated JSON

noDate

Type: boolean
Default: false

Does not add date property to generated JSON

verbose

Type: number
Default: 0

Control the amount of output displayed:

  • 0 Hide output
  • 1 List detected components
  • 2 List component details

Related Projects

License

This work is licensed under The MIT License