Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/thoriqazzikraa/ytmusic-metadata

Light version of youtube music metadata using Node-ID3
https://github.com/thoriqazzikraa/ytmusic-metadata

Last synced: 6 days ago
JSON representation

Light version of youtube music metadata using Node-ID3

Awesome Lists containing this project

README

        

# Youtube Music Metadata
Light version of youtube music metadata using Node-ID3

# Install
`npm i ytmusic-metadata`

# Search Function
```js
(async () => {
const yt = require("ytmusic-metadata")
const ytmusic = await yt.searchTrack(query, type) // Default type is song
console.log(ytmusic)
})
```
# Available Type
`"song"`
`"video"`

# Example Search Function With Type
```js
(async () => {
const yt = require("ytmusic-metadata")
const ytmusic = await yt.searchTrack("fire flower", "video") // it will return array
console.log(ytmusic)
})
```

# Downloads Function
```js
(async () => {
const yt = require("ytmusic-metadata")
const ytmusic = await yt.downloads(query)
console.log(ytmusic)
})
```