Skip to content

Node.js JSON generator for the simple and diligent HTML5 audio player MUSE https://github.com/moefront/muse

Notifications You must be signed in to change notification settings

moefront/muse-json-generator

Repository files navigation

muse-json-generator

npm Build Status Coverage Status built by

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

  • Adjust translation
  • test

License

© 2017-2020 MoeFront Studio | The MIT License (MIT).

About

Node.js JSON generator for the simple and diligent HTML5 audio player MUSE https://github.com/moefront/muse

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •