ISS Data

node v10.23.3
version: 4.1.0
endpointsharetweet
/*const now = () => Date.now();*/ const getJSON = require("async-get-json"); exports.endpoint = async (req, res) => { let data = await getJSON("http://api.open-notify.org/iss-now.json"); res.end( JSON.stringify({ "raw": data, "iis": data.iss_position }) ); };
//exports.endpoint().then(d => console.log(d))
Loading…

no comments

    sign in to comment