Created
October 2, 2018 17:26
-
-
Save kedar9444/89385ca798566a7e6e8fd621d011c171 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("request"); | |
async function currentPosition() { | |
return JSON.parse(await require("request-promise")("http://api.open-notify.org/iss-now.json")).iss_position; | |
}; | |
await currentPosition(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment