Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const requestFromLinkInFile = Promise.coroutine(function*() {
const url = yield fs.readFile('link.txt');
const response = yield request.get(url);
return response.body ? response.body : 'No body returned from request.';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.