lyricsfetchergenius
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "lyricsfetchergenius", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A npm package to fetch lyrics from genius api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,2 +14,11 @@ # Lyrics Fetcher Genius | ||
[Get the genius APIKey/Token here](https://genius.com/developers) | ||
**Using Typescript** | ||
```ts | ||
import lyricsfetchergenius from "lyricsfetchergenius"; | ||
``` | ||
**Using Javascript** | ||
Using GetLyrics: | ||
@@ -16,0 +25,0 @@ |
@@ -5,9 +5,9 @@ /** | ||
function OptionsChecker(options) { | ||
if (!options.APIKey) { | ||
if (!("APIKey" in options) || !options.APIKey) { | ||
throw '"APIKey" property must be present in options'; | ||
} | ||
if (!options.Title) { | ||
if (!("Title" in options) || !options.Title) { | ||
throw '"Title" property must be present in options'; | ||
} | ||
if (!options.Artist) { | ||
if (!("Artist" in options) || !options.Artist) { | ||
throw '"Artist" property must be present in options'; | ||
@@ -14,0 +14,0 @@ } |
22751
183