Skip to content

Instantly share code, notes, and snippets.

@starsinmypockets
Created June 19, 2019 13:02
Show Gist options
  • Save starsinmypockets/32efd6f341ecce7a7b02acc04778e176 to your computer and use it in GitHub Desktop.
Save starsinmypockets/32efd6f341ecce7a7b02acc04778e176 to your computer and use it in GitHub Desktop.
const datahub = require('datahub-client')
const {Dataset} = require('data.js')
async function getDataset() {
const datasetUrl = "https://datahub.io/starsinmypockets/montreal-kpis"
const dataset = await Dataset.load(datasetUrl)
const resources = await datahub.get(dataset)
console.log(resources)
}
console.log('Hello world')
getDataset()
@starsinmypockets
Copy link
Author

This does not throw any errors that I can tell -- returns data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment