diff --git a/README.md b/README.md index 1ee6a00..b800098 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Inspired by [DatMusic](https://github.com/alashow/datmusic-api), [MyFreeMp3](htt *TODO* * Dowload all songs in a folder +* Add Spotify metadatas in the m3u8 file * Add proper command line options * Rewrite this as a plugin for Ampache * Rewrite this as a plugin for Funkwhale @@ -32,3 +33,11 @@ Inspired by [DatMusic](https://github.com/alashow/datmusic-api), [MyFreeMp3](htt 1. Install nodejs/npm 1. `npx vk-music-dl https://open.spotify.com/playlist/6LgeEhc97Azxq6sinJQt6w` + +## Usage as library + +```javascript +const {main} = require('vk-music-dl/lib'); + +main('https://open.spotify.com/playlist/6LgeEhc97Azxq6sinJQt6w'); +``` diff --git a/package.json b/package.json index 373ab86..847ee95 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "downloader" ], "files": [ + "lib", "index.js", "README.md" ],