erela.js-apple

Apple Music plugin for Erela.JS

Usage no npm install needed!

<script type="module">
  import erelaJsApple from 'https://cdn.skypack.dev/erela.js-apple';
</script>

README

What is this ?

This a plugin for Erela.JS to allow the use of AppleMusic URL's, it uses direct URL's being tracks, albums, and playlists and gets the YouTube equivalent.

Installation

NPM :

npm install erela.js-apple

Example Usage

const { Manager } = require("erela.js");
const AppleMusic  = require("erela.js-apple");

const manager = new Manager({
  plugins: [
    // Initiate the plugin
    new AppleMusic()
  ]
});

manager.search("https://music.apple.com/mx/album/happier-than-ever/1564530719");