# ctdataindex

> A simple node.js package for retrieving the list of open datasets for CT

Latest version **1.0.2** (published 2016-04-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install ctdataindex
pnpm add ctdataindex
yarn add ctdataindex
bun add ctdataindex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-04-21 |
| First published | 2016-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ed Foley |
| Maintainers | fionnmaccumhaill |
| Keywords | ctopendata, node.js, socrata |

## Links

- npm: https://www.npmjs.com/package/ctdataindex
- Repository: https://github.com/fionnmaccumhaill/ctdataindex
- Issues: https://github.com/fionnmaccumhaill/ctdataindex/issues
- npm.io page: https://npm.io/package/ctdataindex

## Dependencies (3)

- [assert](https://npm.io/package/assert.md) ^1.3.0
- [request](https://npm.io/package/request.md) ^2.71.0
- [request-promise](https://npm.io/package/request-promise.md) ^2.0.1

## Recent versions

- 1.0.2 (latest) — 2016-04-21
- 1.0.1 — 2016-04-21
- 1.0.0 — 2016-04-21

## README

# ctdataindex
A simple node.js package for retrieving the list of CT Open Datasets from Socrata.

Intall the package:
npm install ctdataindex

Usage:
```javascript
var myidx = require('ctdataindex');  
var y = myidx.getSocrataList(); // returns an Object containing a Promise  
var dsListPromise = y.dsPromise; // get the Promise from the Object  
dsListPromise.then(function (theList) {  
    process(theList);  
}).catch(function(listError) {  
    processError(listError);  
});  
```

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:

https://project-open-data.cio.gov/v1.1/schema/

---
_Source: https://npm.io/package/ctdataindex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
