lisa.orbit

1.0.6 • Public • Published

LiSA.orbit.js

task orbit just like planetary orbit

how to use

node

npm i --save lisa.orbit

web

browserify -r ./index.js:lisa.orbit > orbit.js
<script src="js/orbit.js"></script>
var orbit = require("lisa.orbit")

orbit.setOrbit("Mercury",p=>{ 
    console.log("Mercury : hello i am " + (p+ 10000)); 
    return new Promise((r,j)=>{ setTimeout(()=>{
        r(p)
    },Math.random()*3000)})
},mina=>{
    console.log("xx mina : " + mina)
},"mercury")

orbit.push("Mercury", "hell9")

more in test.js

Readme

Keywords

Package Sidebar

Install

npm i lisa.orbit

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

4.61 kB

Total Files

4

Last publish

Collaborators

  • apporoad