From 086cf7eeb138dadea42c82aae8a275c615746c59 Mon Sep 17 00:00:00 2001 From: HugoPoi Date: Sun, 27 Sep 2020 11:37:58 +0200 Subject: [PATCH] doc: update README.md and add lib in package --- README.md | 9 +++++++++ package.json | 1 + 2 files changed, 10 insertions(+) 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" ],