Javascript fetch node sample

from blog lmno.lol @alvaro, | ↗ original
Playing with node and fetch: // Requisite: npm install node-fetch --save // Save to fetch-demo.js // Run: node fetch-demo.js var fetch = require('node-fetch'); fetch("http://xenodium.com/data/javascript-fetch-node-sample/message.json\n", { method: 'GET', timeout: 5000 }).then(function(response) { return response.json();...