diff --git a/docs/README.md b/docs/README.md index f5a70ab..e5808bd 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4,6 +4,9 @@ actions: - text: Get Started link: /docs/getting-started.html type: primary + - text: NPM Registry + link: https://npmjs.org/package/ytmusic-api + type: secondary features: - title: YouTube Music Scraper details: YTMusic API scrapes https://music.youtube.com for results and formats it for you diff --git a/docs/docs/getting-started.md b/docs/docs/getting-started.md index 5c41cfd..e7e8e6e 100644 --- a/docs/docs/getting-started.md +++ b/docs/docs/getting-started.md @@ -30,9 +30,7 @@ pnpm i ytmusic-api -## Usage - -Import YTMusic from the npm package +## Importing ```ts // ES6 Import @@ -41,13 +39,3 @@ import YTMusic from "ytmusic-api" // Node Require const YTMusic = require("ytmusic-api") ``` - -Create an instance of the class `YTMusic`. -Then, call the `initialize()` to initialize the API before using the API anywhere - -```ts -const ytmusic = new YTMusic() -ytmusic.initialize().then(() => { - // Use API here -}) -```