ctdataindex
A simple node.js package for retrieving the list of CT Open Datasets from Socrata.
Intall the package: npm install ctdataindex
Usage:
var myidx = ; var y = myidx; // returns an Object containing a Promise var dsListPromise = ydsPromise; // get the Promise from the Object dsListPromise;
If you aren't familiar with Promises please check out these links:
- https://www.npmjs.com/package/promise
- http://stackoverflow.com/questions/4296505/understanding-promises-in-node-js?rq=1
- http://www.2ality.com/2014/10/es6-promises-api.html
The format of the list of datasets returned is described in the schema at: