0.0.2 • Published 9 years ago

votesmart-node v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Build Status

votesmart-node

#####A simple wrapper around the function provided by the VoteSmart API.

As of writing, all of the methods in the API are implemented here and each method returns a promise (bluebird) so that these queries can be chained to form more complex queries not possible with the vanilla API.

Installation:

npm i votesmart-node --save

Use:

var votesmart = require('votesmart-node');

votesmart.State.getStateIDs() -> returns a Promise;

In the near future, I'll add more thorough input validation (currently, it will check that the required args are not nil) as well as implementing a few custom queries that I need.