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