@testneumz/nabc-cli
v2.2.22
Published
This is a CLI tool to convert GABC code to image.
Downloads
133
Readme
GABC-UTIL
This is a CLI tool to convert GABC code to image.
Usage
npx @testneumz/nabc-cli@latest [options]
Options
Command image
-c, --code <code...>
: GABC code surround with double quotes "(c4)Chris(g|vi)"-f, --file <file...>
: GABC file(s)-d, --dump
: Generate dump file-n, --nabc-only
: NABC only mode-q, --quality <number>
: Quality coefficient for PNG image. Default is 10.0-s, --size <size>
: Width of the image in pixels. Use 0 for infinite width. This option is mandatory.-t, --type <type>
: Output file type. This option is mandatory. Choices are 'png', 'svg', 'pdf'.-o, --output <output...>
: Output file(s) name. This option is mandatory.-p, --puppeteerArgs '--no-sandbox --allow-file-access-from-files'
: Passes parameters to puppeteer--distances '--no-sandbox --allow-file-access-from-files'
: Passes parameters to puppeteer--nabcMode laon
or--nabcMode gall
: choose mode for nabc font
Command link
-c, --code <code...>
: GABC code surround with double quotes "(c4)Chris(g|vi)"-f, --file <file...>
: GABC file(s)-b, --base
: Base Url
Examples
npx @testneumz/nabc-cli@latest image -c "(c4)Chris(g|vi)" -o img.png -t png -s 1000
npx @testneumz/nabc-cli@latest image -c "(c4)Chris(g|vi)" -o img.svg -t svg -s 1000
npx @testneumz/nabc-cli@latest image -f "of--vir_erat_(verses)--triplex.gabc" -o vir_erat.png -t png -s 2000
npx @testneumz/nabc-cli@latest image -f "of--vir_erat_(verses)--triplex.gabc" -o vir_erat.svg -t svg -s 2000
npx @testneumz/nabc-cli@latest image -f "of--vir_erat_(verses)--triplex.gabc" "of--vir_erat_(verses)--triplex.gabc" -o "vir_erat.png" "vir_erat2.png" -t png -s 2000
npx @testneumz/nabc-cli@latest image -c "(c4)Chris(g|vi)" "(c4)Chris(g|vi)" -o img.png -t png -s 1000
npx @testneumz/nabc-cli@latest image -c "(c4)Chris(g|vi)" -o img.png -t png -s 1000 -n
npx @testneumz/nabc-cli@latest image -c "(c4)Chris(g|vi)" -o img.svg -t svg -s 1000 -n
npx @testneumz/nabc-cli@latest image -f "of--vir_erat_(verses)--triplex.gabc" -o vir_erat.png -t png -s 2000 -n
npx @testneumz/nabc-cli@latest image -f "of--vir_erat_(verses)--triplex.gabc" -o vir_erat.png -t png -s 0 -n
npx @testneumz/nabc-cli@latest image -f "of--vir_erat_(verses)--triplex.gabc" -o vir_erat.png -t png -s 0 -d
npx @testneumz/nabc-cli@latest image -f "of--vir_erat_(verses)--triplex.gabc" -o vir_erat_exp.png -t png -s 0
This will convert the GABC code "(c4)Chris(g|vi)" into a PNG image with a width of 500 pixels and save it as output.png
.