Socket
Socket
Sign inDemoInstall

kar-to-ass

Package Overview
Dependencies
7
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kar-to-ass

Converts midi/kar karaoke files to ass format


Version published
Weekly downloads
171
increased by43.7%
Maintainers
1
Install size
435 kB
Created
Weekly downloads
 

Readme

Source

kar-to-ass

Conversion tool made to parse kar files and rewrite their lyrics using ASS format

Usage

CLI

# Prints conversion on stdout
kar-to-ass -i <kar file>

# Prints conversion into specified file
kar-to-ass -i <kar file> -o <ASS file>

# Use 'kf' instead of 'k' to make the text filling progressive
kar-to-ass -i <kar file> -p

# Converts file and applies the specified offset (in cs)
kar-to-ass -i <kar file> -c <offset>

# Displays more help
kar-to-ass --help

Module

function parseKar(fileContent: string): KarData

Loads a KarData structure based on said fileContent

function convertKarToAss(kar: KarData, options: Options): string

Prepares said kar and returns it as a string

function convertKarStringToAss(fileContent: string, options: Options): string

All of the above in one step

interface Options

Wraps all options that could be used during conversion. Its members are:

  • offset (number): offsets every line
  • progressive (boolean): use 'kf' instead of 'k'

Test

You can test code with a kar file :

node dist/index.js -i test.kar -o test.ass

Keywords

FAQs

Last updated on 18 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc