Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alias-rahil/lyrics-searcher

A Simple Lyrics Finder That Just Works
https://github.com/alias-rahil/lyrics-searcher

azlyrics cli genius google javascript lyrics-fetcher lyrics-finder lyrics-searcher musixmatch rapidapi scrape song typescript

Last synced: about 1 month ago
JSON representation

A Simple Lyrics Finder That Just Works

Awesome Lists containing this project

README

        

Welcome to lyrics-searcher 👋



Version


Documentation


Maintenance


License: MIT

> A Simple Lyrics Finder That Just Works

## Programmatic usage:

### Installation

```sh
npm install --save lyrics-searcher
```

### Usage

```ts
import lyricsSearcher from "lyrics-searcher";

lyricsSearcher("poets of fall", "carnival of rust")
.then((lyrics) => {
console.log(lyrics);
})
.catch((error) => {
console.error(error);
});
```

## Command line usage:

### Using without installation

```sh
npx lyrics-searcher "a r rahman" "kun faya kun"
```

> Note: Use this method only if you plan to use lyrics-searcher for one time, installing lyrics-searcher globally (see-below) is recommended for multiple time usages.

### Installation

```sh
npm install lyrics-searcher -g
```

> Note for Linux & MacOS users: **DO NOT** use sudo to install global packages! The correct way is to tell npm where to install its global packages: `npm config set prefix ~/.local`. Make sure `~/.local/bin` is added to `PATH`.

### Usage after installation

```sh
lyrics-searcher "prateek kuhad" "cold mess"
```

## Screenshot


all-i-want-kodaline.png

## API

For CLI usage, see the help option:

```sh
npx lyrics-searcher --help
```

For programmatic usage, use the default exported module. It takes two arguments. Artist name and Song name. It returns a promise which resolves into a string containing the lyrics if found, otherwise it will throw an exception (with an error message).

## Author

👤 **Rahil Kabani**

* Website: https://alias-rahil.github.io
* Github: [@alias-rahil](https://github.com/alias-rahil)
* Email: [email protected]

## 🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/alias-rahil/lyrics-searcher/issues). You can also take a look at the [contributing guide](https://github.com/alias-rahil/lyrics-searcher/blob/main/.github/CONTRIBUTING.md).

## Show your support

Give a ⭐️ if this project helped you!

## Lyrics-searcher

* 🏠 [Homepage](https://alias-rahil.github.io/lyrics-searcher)
* 📄 [Readme](https://github.com/alias-rahil/lyrics-searcher#readme)
* 📦 [Package](https://www.npmjs.com/package/lyrics-searcher)

## 📝 License

Copyright © 2021 [Rahil Kabani](https://github.com/alias-rahil).

This project is [MIT](https://github.com/alias-rahil/lyrics-searcher/blob/main/LICENSE) licensed.