Giter Site home page Giter Site logo

visbot / webvsc-cli Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 432 KB

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

Home Page: https://www.npmjs.org/package/@visbot/webvsc-cli

License: MIT License

JavaScript 2.88% TypeScript 96.79% Shell 0.34%
webvs webvsc avs winamp

webvsc-cli's Introduction

@visbot/webvsc-cli

License Version Build

Description

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

Installation

Use your preferred NodeJS package manager to install the CLI globally

$ npm install --global @visbot/webvsc-cli

To use the tool without installation, you can use the npx command:

$ npx @visbot/webvsc-cli

Usage

CLI

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

Usage: webvsc [options] [command]

Options:
  -h, --help                          display help for command

Commands:
  convert [options] <file...>         convert presets to JSON format, supports glob patterns
  info [options] <file...>            show info about AVS presets, supports glob patterns
  diff [options] <preset1> <preset2>  approximates similarity between two AVS presets
  help [command]                      display help for command

Refer to the help for each sub-command to list its options.

convert

Converts presets to Webvs JSON format

Example:

$ webvsc convert ./Plugins/avs/**/*.avs

info

Show list of effects and assets used by a preset

Example:

$ webvsc info example.avs
$ webvsc info ./Plugins/avs/**/*.avs --summary

diff

Approximates the difference between two presets

Example:

$ webvsc diff -mld preset1.avs preset2.avs

โš ๏ธ This command requires additional flags to be set, see webvsc diff --help for details.

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.

Linux/macOS

$ for dir in avs/*; do echo $dir; webvsc convert "$dir/**/*.avs" --quiet; done

Windows

$ Get-ChildItem -Path .\avs\ -Recurse | ForEach-Object { webvsc convert $_.FullName --quiet }

License

All code is licensed under The MIT License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.