New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lilynode

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lilynode

Node.js wrapper for LilyPond

latest
Source
npmnpm
Version
0.5.2
Version published
Maintainers
1
Created
Source

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.

Keywords

lilypond

FAQs

Package last updated on 19 Apr 2024

Did you know?

Socket

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