2.2.22 • Published 7 months ago

@testneumz/nabc-cli v2.2.22

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

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.

2.2.22

7 months ago

2.2.20

8 months ago

2.2.21

8 months ago

2.2.19

10 months ago

2.2.18

10 months ago

2.2.15

11 months ago

2.2.16

10 months ago

2.2.13

11 months ago

2.2.14

11 months ago

2.2.11

1 year ago

2.2.12

12 months ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.7

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.6

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.3

1 year ago

2.1.5

1 year ago

1.3.0

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago