Giter Site home page Giter Site logo

muse-json-generator's Introduction

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

muse-json-generator's People

Contributors

dependabot[bot] avatar kirainmoe avatar kokororin avatar poria-cat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.