0.5.2 • Published 21 days ago

lilynode v0.5.2

Weekly downloads
4
License
ISC
Repository
github
Last release
21 days ago

LilyNode

LilyNode is a Node.js wrapper for LilyPond.

Installation

npm install lilynode

Usage

import fs from "fs/promises"
import { renderFile } from "lilynode"

const pdf = await renderFile(
  filePath, // Path to LilyPond file
  { format: "pdf" },  // Options object to configure the rendering
)

await fs.writeFile("./test.pdf", pdf, { encoding: "binary" })

// or

const pdf = await render(
  "\\score { …", // Content of a LilyPond file
  { format: "pdf" },
)

Available Options

format: "midi" | "pdf" | "ps" | "png" | "svg" - File format of output file \ Default value: png

resolution: number - Resolution of output in ppcm (only available for PNGs) \ Default value: 50

binaryPath: string - Path to lilypond binary \ Default value: lilypond

Development

Check out the makefile for all available commands.

0.5.2

21 days ago

0.5.1

21 days ago

0.5.0

24 days ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago