Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@visbot/webvsc-cli

0.6.1 • Public • Published

webvsc-cli

npm npm Travis David David

Description

CLI tool to batch-convert Winamp AVS presets into native Webvs JSON format.

Installation

Use your preferred Node package manager to install the CLI globally

$ yarn global add @visbot/webvsc-cli || npm install --global @visbot/webvsc-cli

Usage

CLI

Once setup, you can run webvsc --help to list available options:

$ webvsc

  Usage: webvsc [options] <file(s)>

  Options:

    -V, --version      output the version number
    -v, --verbose <n>  control the amount of output displayed
    -m, --minify       minify generated JSON
    -q, --quiet        print errors only
    -D, --no-date      don't create date from file meta
    -H, --no-hidden    don't extract hidden strings from fixed-size strings
    -h, --help         output usage information

Commonly, you would run webvsc "avs/**/*.avs" to convert a bunch of presets, or just one. When using wildcards, you might have to wrap the path in quotes.

Troubleshooting

When trying to convert a large number of files, you might run into an EMFILE error. This is a well-documented issue that occurs whenever the number of maximum open files exceeds its limit. In such a case, you can use the following as workaround.

# Bash 
for dir in avs/*; do echo $dir; webvsc "$dir/**/*.avs" --quiet; done
 
# Windows 
for /r %i in (avs/*) do webvsc %i --quiet

License

All code is licensed under The MIT License

Install

npm i @visbot/webvsc-cli

DownloadsWeekly Downloads

0

Version

0.6.1

License

MIT

Unpacked Size

43.6 kB

Total Files

11

Last publish

Collaborators

  • avatar
  • avatar