Skip to content

Instantly share code, notes, and snippets.

@kevintrankt
Last active November 15, 2018 22:55
Show Gist options
  • Save kevintrankt/358bf43fdca0a8df29e180d6995434e6 to your computer and use it in GitHub Desktop.
Save kevintrankt/358bf43fdca0a8df29e180d6995434e6 to your computer and use it in GitHub Desktop.
Using Node.js with Import.io
const request = require('request');
const csv = require('csvtojson');
const fetch = uri => {
request(uri, (error, response, body) => {
csv({
output: 'json'
}).fromString(body)
.then(data => {
console.log(data);
});
}
};
fetch(<ENDPOINT>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment