Skip to content

Commit

Permalink
fix(Constants): typo
Browse files Browse the repository at this point in the history
chore(docs): update docs
chore(README.md): update readme.md
  • Loading branch information
harusame3144 committed Aug 30, 2022
1 parent 2c40909 commit 6b7752d
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 69 deletions.
41 changes: 22 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# slyrics - Fetch Lyrics Without Api Key
<h1 align="center">🗒️ slyrics - Fetch Lyrics Without Api Key</h1>

## Installation
Using npm:
```
<p align="center">
<a href="https://www.npmjs.com/package/slyrics">
<img alt="slyrics version" src="https://badge.fury.io/js/slyrics.svg"></img>
</a>
<p>


## 📥 Installation
``
npm install slyrics --save
```
Using yarn:
```
yarn add slyrics
```
``
or
``yarn add slyrics``

## Documentation
[Typedoc](https://sirubot.github.io/slyrics/)
## [Documentation](https://slyrics.cocochino.cafe)
[![pages-build-deployment](https://github.com/SiruBOT/slyrics/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/SiruBOT/slyrics/actions/workflows/pages/pages-build-deployment)

## Typescript Example
## Example Code
```ts
import { ILyricsSearchResult } from "./interfaces";
import { Lyrics } from "./structures";
Expand All @@ -24,18 +28,17 @@ async function example() {
const res: ILyricsSearchResult = await provider.search("RE:WIND");
if (res.entries.length === 0) {
console.log("No result");
} else {
const lyricsInstance: Lyrics = await res.entries[0].getLyrics();
console.log(
`${res.entries.length} results found.\nFirst one: ${lyricsInstance.title} - ${lyricsInstance.artist}
${lyricsInstance.lyrics}`
);
return;
}
const lyricsInstance: Lyrics = await res.entries[0].getLyrics();
console.log(res.entires.length + " results");
console.log("First entry: " + lyricsInstance.title + " - " + lyricsInstance.artist);
console.log(lyricsInstance.lyrics);
}

example();
```

|Provider|tag|Contributor|
|------|---|---|
|Melon|melon|Sangoon_Is_Noob|
|Melon|melon|[Sannoob3144](https://github.com/sannoob3144)|
22 changes: 4 additions & 18 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
:root {
--light-hl-0: #001080;
--dark-hl-0: #9CDCFE;
--light-hl-0: #AF00DB;
--dark-hl-0: #C586C0;
--light-hl-1: #000000;
--dark-hl-1: #D4D4D4;
--light-hl-2: #AF00DB;
--dark-hl-2: #C586C0;
--light-hl-2: #001080;
--dark-hl-2: #9CDCFE;
--light-hl-3: #A31515;
--dark-hl-3: #CE9178;
--light-hl-4: #0000FF;
Expand All @@ -17,10 +17,6 @@
--dark-hl-7: #4EC9B0;
--light-hl-8: #098658;
--dark-hl-8: #B5CEA8;
--light-hl-9: #000000FF;
--dark-hl-9: #D4D4D4;
--light-hl-10: #EE0000;
--dark-hl-10: #D7BA7D;
--light-code-background: #F5F5F5;
--dark-code-background: #1E1E1E;
}
Expand All @@ -35,8 +31,6 @@
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--hl-10: var(--light-hl-10);
--code-background: var(--light-code-background);
} }

Expand All @@ -50,8 +44,6 @@
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--hl-10: var(--dark-hl-10);
--code-background: var(--dark-code-background);
} }

Expand All @@ -65,8 +57,6 @@ body.light {
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--hl-10: var(--light-hl-10);
--code-background: var(--light-code-background);
}

Expand All @@ -80,8 +70,6 @@ body.dark {
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--hl-10: var(--dark-hl-10);
--code-background: var(--dark-code-background);
}

Expand All @@ -94,6 +82,4 @@ body.dark {
.hl-6 { color: var(--hl-6); }
.hl-7 { color: var(--hl-7); }
.hl-8 { color: var(--hl-8); }
.hl-9 { color: var(--hl-9); }
.hl-10 { color: var(--hl-10); }
pre, code { background: var(--code-background); }
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/BaseProvider.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/HTTPRequester.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/Lyrics.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/LyricsSearchResultItem.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/MelonProvider.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/SLyricsHTTPRequestError.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/SLyricsNotImplementedError.html

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/ILyrics.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/ILyricsSearchResult.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/ILyricsSearchResultItem.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/IProvider.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slyrics",
"version": "1.0.2",
"version": "1.0.21",
"description": "Scrape Lyrics without API Key",
"main": "dist/index.js",
"scripts": {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/structures/BaseProvider.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SLyricsNotImplementedError } from "../errors/SLyricsNotImplementedError";
import { IProvider } from "../interfaces/IProvider";
import { ILyricsSearchResult } from "../interfaces/ILyricsSearchResult";
import { NotImplCodes } from "../Constances";
import { NotImplCodes } from "../Constants";
export abstract class BaseProvider implements IProvider {
public name: string;
constructor(name: string) {
Expand Down

0 comments on commit 6b7752d

Please sign in to comment.