UNPKG

ym-api

Version:

A Node.js wrapper for the Yandex.Music API (Unofficial) http://music.yandex.ru

14 lines (12 loc) 283 B
import { YMApi } from "../src"; import config from "./config"; const api = new YMApi(); (async () => { try { await api.init(config.user); const feed = await api.getFeed(); console.log({ s: feed }); } catch (e) { console.log(`api error: ${e.message}`); } })();