UNPKG

onsong

Version:

A JavaScript library for parsing and formatting chord sheets in the OnSong File Format.

13 lines (10 loc) 330 B
const Metadata = require('./metadata') const Section = require('./section') class Song { constructor({ metadata, sections, warnings }) { this.metadata = new Metadata(metadata) this.sections = sections.map(section => new Section(section)) this.warnings = warnings } } module.exports = { Song, Metadata, Section }