1.1.3 • Published 3 years ago

voosic v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

📻 voosic 🎶

Search / Get music resources from Youtube and Spotify. You can also get song lyrics if available.

Getting started

npm install voosic --save

or

yarn add voosic

How to Use

We are using Official Spotify API for hit the requests. You can create your own client secret from register Spotify Developer.

// config.json
{
	"spotify": {
		"clientId": "xxx",
		"clientSecret": "xxx"
	}
}
import Voosic from 'voosic'

const config = require('config.json')
const voosic = Voosic(config)

// It should be return music
voosic('breezeblocks')
	.then((song) => {
		console.log(song)
	})
	.catch(console.error)

// Get song lyrics
song.getLyrics()

Tested query

DONE ========= https://www.youtube.com/watch?v=UOUBW8bkjQ4&list=PL3roRV3JHZzYrywUGDSoIeF7J9P4sWIba
DONE ========= https://open.spotify.com/track/3Wu6MhnZuLuzfH5wFC2g9i?si=969aeaf0966849dd
DONE ========= https://open.spotify.com/album/7AVKwlAGKaLBii6gsl1Hje
DONE ========= https://open.spotify.com/artist/3XHO7cRUPCLOr6jwp8vsx5
DONE ========= https://open.spotify.com/playlist/37i9dQZF1E36xxXvBvaV6c
DONE ========= https://www.youtube.com/watch?v=3tmwbTeQWmk
DONE ========= alt j
DONE ========= left hands free alt j
DONE ========= https://www.youtube.com/watch?v=W_8mBam6fJc&list=RDEMcqCREqV2L3jtG38CQyPXrg
DONE ========= https://www.youtube.com/channel/UCBQZwaNPFfJ1gZ1fLZpAEGw

Todo

  • Support spotify Track | Playlist | Album | Artist
  • Support youtube Song | Playlist | Album | Artist | Unknown query
  • Get youtube direct URL (Webm/Opus)
  • Caching data results
  • Minify sources
1.1.3

3 years ago

1.1.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.3

3 years ago

0.0.1

3 years ago