Gets Json from and json to song-files
- Version:
- 1.0
- Source:
Methods
(static) toFile(json, callback)
Write Json to a File String
Parameters:
| Name | Type | Description |
|---|---|---|
json |
object | String as delivered by fs.readFile |
callback |
song~stringCallback | A Callback with an error or the String as delivered to fs.writeFile |
- Source:
Returns:
Nothing
(static) toJSON(data, callback)
Get Json from a string
Parameters:
| Name | Type | Description |
|---|---|---|
data |
string | String as delivered by fs.readFile |
callback |
song~jsonCallback | A Callback with an error or the Json |
- Source:
Returns:
Nothing
(inner) isCaption(text) → {bool}
Checks if a string is a caption (Vers, Bridge, Chorus, ...)
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string | A Line of Text |
- Source:
Returns:
- True, if is a caption, else false
- Type
- bool