muse-json-generator
JSON generator for MUSE
Last updated 6 months ago by kokororin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install muse-json-generator 
SYNC missed versions from official npm registry.

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<string>.

Todo list

  • [x] Adjust translation
  • [x] test

License

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

Current Tags

  • 2.0.6                                ...           latest (6 months ago)

15 Versions

  • 2.0.6                                ...           6 months ago
  • 2.0.5                                ...           3 years ago
  • 2.0.4                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (19)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |