kar-to-ass
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

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

Dependencies (5)

Dev Dependencies (5)

Package Sidebar

Install

npm i kar-to-ass

Weekly Downloads

83

Version

1.0.11

License

MIT

Unpacked Size

46.3 kB

Total Files

15

Last publish

Collaborators

  • dysp