muse-json-generator
v2.0.6
Published
JSON generator for MUSE
Downloads
27
Readme
muse-json-generator
Node.js JSON generator for the simple and diligent HTML5 audio player MUSE.
Usage
with Node.js API
$ 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
on CLI
$ 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
API
const generator = require('muse-json-generator');
generator(id, [id], [id], ...)
Returns Promise.
Todo list
- [x] Adjust translation
- [x] test
License
© 2017-2020 MoeFront Studio | The MIT License (MIT).