@ashiteam/ashichords-ts-lib
v0.1.20
Published
TypeScript port of AshiChords.LIB for Node.js.
Readme
@ashiteam/ashichords-ts-lib
TypeScript/Node.js port of AshiChords.LIB.
Features
- Chord validation and transposition
- Normal text and ACF song parsing
- Ashi chord file load/save helpers
- Song metadata helpers
- Sinhala text support included from the local TypeScript source used in this workspace
Install
npm install @ashiteam/ashichords-ts-libBuild
npm install
npm run buildExample
import { AshiChordFile, Chord, SongData } from '@ashiteam/ashichords-ts-lib';
const song = new SongData('Demo', true);
song.Text = 'G\r\nmaage\r\n';
console.log(Chord.Transpose('C', 2));
console.log(song.ACFFormattedText);
const file = new AshiChordFile();
file.Text = song.Text;