muse-json-generator
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i muse-json-generator

Weekly Downloads

0

Version

2.0.6

License

MIT

Unpacked Size

21.7 kB

Total Files

17

Last publish

Collaborators

  • kokororin