Node.js JSON generator for the simple and diligent HTML5 audio player MUSE.
$ npm install --save muse-json-generator
Create a new file named playlist.js
const generator = require('muse-json-generator');
generator(477331181, 480097777).then(playlist => {
console.log(playlist);
});
node playlist.js > playlist.json
$ npm install -g muse-json-generator
$ muse 477331181 480097777
$ muse 477331181,480097777
$ muse 477331181 480097777 --temporary
# If you want a temporary link like /m([0-9]).music.126.net/, please provide this option.
This action would generate a playlist.json
in your current working directory.
Try --stdout
option to write playlist to stdout without generating a file.
$ muse 477331181 480097777 --stdout
const generator = require('muse-json-generator');
Returns Promise.
- Adjust translation
- test
© 2017-2020 MoeFront Studio | The MIT License (MIT).