chordsheetjs 9.0.2 → 9.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +28 -18
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -438,8 +438,6 @@ Whisper words of wisdom, let it be
438
438
  <p><code>ChordsOverWordsParser</code> is the better version of <code>ChordSheetParser</code>, which is deprecated.</p></dd>
439
439
  <dt><a href="#ParserWarning">ParserWarning</a></dt>
440
440
  <dd><p>Represents a parser warning, currently only used by ChordProParser.</p></dd>
441
- <dt><a href="#PegBasedParser">PegBasedParser</a></dt>
442
- <dd><p>Parses a chords over words sheet</p></dd>
443
441
  <dt><a href="#UltimateGuitarParser">UltimateGuitarParser</a></dt>
444
442
  <dd><p>Parses an Ultimate Guitar chord sheet with metadata
445
443
  Inherits from [ChordSheetParser](#ChordSheetParser)</p></dd>
@@ -1294,9 +1292,20 @@ PDF conversion.</p>
1294
1292
  <p>Parses a ChordPro chord sheet</p>
1295
1293
 
1296
1294
  **Kind**: global class
1295
+
1296
+ * [ChordProParser](#ChordProParser)
1297
+ * [.warnings](#ChordProParser+warnings) : [<code>Array.&lt;ParserWarning&gt;</code>](#ParserWarning)
1298
+ * [.parse(chordSheet)](#ChordProParser+parse) ⇒ [<code>Song</code>](#Song)
1299
+
1300
+ <a name="ChordProParser+warnings"></a>
1301
+
1302
+ ### chordProParser.warnings : [<code>Array.&lt;ParserWarning&gt;</code>](#ParserWarning)
1303
+ <p>All warnings raised during parsing the chord sheet</p>
1304
+
1305
+ **Kind**: instance property of [<code>ChordProParser</code>](#ChordProParser)
1297
1306
  <a name="ChordProParser+parse"></a>
1298
1307
 
1299
- ### chordProParser.parse(chordProChordSheet) ⇒ [<code>Song</code>](#Song)
1308
+ ### chordProParser.parse(chordSheet) ⇒ [<code>Song</code>](#Song)
1300
1309
  <p>Parses a ChordPro chord sheet into a song</p>
1301
1310
 
1302
1311
  **Kind**: instance method of [<code>ChordProParser</code>](#ChordProParser)
@@ -1304,7 +1313,7 @@ PDF conversion.</p>
1304
1313
 
1305
1314
  | Param | Type | Description |
1306
1315
  | --- | --- | --- |
1307
- | chordProChordSheet | <code>string</code> | <p>the ChordPro chord sheet</p> |
1316
+ | chordSheet | <code>string</code> | <p>the ChordPro chord sheet</p> |
1308
1317
 
1309
1318
  <a name="ChordSheetParser"></a>
1310
1319
 
@@ -1385,17 +1394,30 @@ Whisper words of wisdom, let it be
1385
1394
  <p><code>ChordsOverWordsParser</code> is the better version of <code>ChordSheetParser</code>, which is deprecated.</p>
1386
1395
 
1387
1396
  **Kind**: global class
1397
+
1398
+ * [ChordsOverWordsParser](#ChordsOverWordsParser)
1399
+ * [.warnings](#ChordsOverWordsParser+warnings) : [<code>Array.&lt;ParserWarning&gt;</code>](#ParserWarning)
1400
+ * [.parse(chordSheet, options)](#ChordsOverWordsParser+parse) ⇒ [<code>Song</code>](#Song)
1401
+
1402
+ <a name="ChordsOverWordsParser+warnings"></a>
1403
+
1404
+ ### chordsOverWordsParser.warnings : [<code>Array.&lt;ParserWarning&gt;</code>](#ParserWarning)
1405
+ <p>All warnings raised during parsing the chord sheet</p>
1406
+
1407
+ **Kind**: instance property of [<code>ChordsOverWordsParser</code>](#ChordsOverWordsParser)
1388
1408
  <a name="ChordsOverWordsParser+parse"></a>
1389
1409
 
1390
- ### chordsOverWordsParser.parse(chordsOverWordsSheet) ⇒ [<code>Song</code>](#Song)
1410
+ ### chordsOverWordsParser.parse(chordSheet, options) ⇒ [<code>Song</code>](#Song)
1391
1411
  <p>Parses a chords over words sheet into a song</p>
1392
1412
 
1393
1413
  **Kind**: instance method of [<code>ChordsOverWordsParser</code>](#ChordsOverWordsParser)
1394
1414
  **Returns**: [<code>Song</code>](#Song) - <p>The parsed song</p>
1415
+ **See**: https://peggyjs.org/documentation.html#using-the-parser
1395
1416
 
1396
1417
  | Param | Type | Description |
1397
1418
  | --- | --- | --- |
1398
- | chordsOverWordsSheet | <code>string</code> | <p>the chords over words sheet</p> |
1419
+ | chordSheet | <code>string</code> | <p>the chords over words sheet</p> |
1420
+ | options | <code>ParseOptions</code> | <p>Parser options.</p> |
1399
1421
 
1400
1422
  <a name="ParserWarning"></a>
1401
1423
 
@@ -1410,18 +1432,6 @@ Whisper words of wisdom, let it be
1410
1432
 
1411
1433
  **Kind**: instance method of [<code>ParserWarning</code>](#ParserWarning)
1412
1434
  **Returns**: <code>string</code> - <p>The string warning</p>
1413
- <a name="PegBasedParser"></a>
1414
-
1415
- ## PegBasedParser
1416
- <p>Parses a chords over words sheet</p>
1417
-
1418
- **Kind**: global class
1419
- <a name="PegBasedParser+warnings"></a>
1420
-
1421
- ### pegBasedParser.warnings : [<code>Array.&lt;ParserWarning&gt;</code>](#ParserWarning)
1422
- <p>All warnings raised during parsing the chord sheet</p>
1423
-
1424
- **Kind**: instance property of [<code>PegBasedParser</code>](#PegBasedParser)
1425
1435
  <a name="UltimateGuitarParser"></a>
1426
1436
 
1427
1437
  ## UltimateGuitarParser
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chordsheetjs",
3
3
  "author": "Martijn Versluis",
4
- "version": "9.0.2",
4
+ "version": "9.0.3",
5
5
  "description": "A JavaScript library for parsing and formatting chord sheets",
6
6
  "source": "src/index.ts",
7
7
  "main": "lib/index.js",