Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@code-blocks/music

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-blocks/music

Create music sheets from code blocks

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
9
350%
Maintainers
1
Weekly downloads
 
Created
Source

@code-blocks/music

Renders music from code blocks with abc notation using abcjs.

Usage

import { Part } from '@code-blocks/types'
import music from '@code-blocks/music'

const part: Part = {
  type: 'code',
  language: 'music-abc',
  content: `
    X:1
    K:D
    DDAA|BBA2|
  `
}

music()(part)
  .then(notCodePart => ) // { type: 'other', content: `<div class="music-sheet"><svg>...</svg></div>` }

Takes an optional argument languages (defaults to *) and returns an async function that takes a Part and returns a Part

FAQs

Package last updated on 20 Aug 2020

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