Skip to content

Commit

Permalink
Indent code correctly.
Browse files Browse the repository at this point in the history
jperkin committed Jul 17, 2011
1 parent 2169258 commit 28e4f70
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -6,23 +6,23 @@ This is a JavaScript parser for ChordPro files.

Basically, take this

[C]Twinkle [C/E]twinkle [F]little [C]star
[F]How I [C]wonder [G]what you [C]are
[C]Twinkle [C/E]twinkle [F]little [C]star
[F]How I [C]wonder [G]what you [C]are

and output this

C C/E F C
Twinkle twinkle little star
F C G C
How I wonder what you are
C C/E F C
Twinkle twinkle little star
F C G C
How I wonder what you are

See examples/syntax.txt or, you know, Google for more details.

## Usage

Currently only ASCII output is supported, more formats will follow.

var chordpro = require("./chordpro.js");
var song = "[C]Twinkle [C/E]twinkle [F]little [C]star\n" +
"[F]How I [C]wonder [G]what you [C]are\n";
var output = chordpro.to_txt(song);
var chordpro = require("./chordpro.js");
var song = "[C]Twinkle [C/E]twinkle [F]little [C]star\n" +
"[F]How I [C]wonder [G]what you [C]are\n";
var output = chordpro.to_txt(song);

0 comments on commit 28e4f70

Please sign in to comment.