npm install @tuneorg/spotify
import { Spotify } from "@tuneorg/spotify";
const spotify = new Spotify({
clientId: "",
clientSecret: "",
});
(async () => {
await spotify.renewToken(); //must be invoked first
const search = await spotfiy.search(url);
console.log(search);
})();