musickit-ts
MusicKit TS is a library for handling MusicKit JS v3 with TypeScript.
Usage
-
MusicKit JS v3 must be available. Read "Getting Stated" article for MusicKit JS v3.
-
npm i musickit-ts
-
Create
new MusicKitTS
and use.
const musicKitTS = new MusicKitTS({
developerToken: developerToken,
app: {
name: appName,
build: appBuild,
},
});
const result = await musicKitTS.api.getCatalogResource.Album({
id: '1479013030',
});
See tests if you want to check more reference implementations.