votesmart-node

0.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i votesmart-node

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • snyamathi