numbers-today

numbers.today API client library for node.js/io.js

Usage no npm install needed!

<script type="module">
  import numbersToday from 'https://cdn.skypack.dev/numbers-today';
</script>

README

numbers-today

numbers.today API client library for node.js/io.js

Build Status Coverage Status Dependency Status

Installation

NPM Stats

This is a module for node.js and io.js and is installed via npm:

npm install numbers-today --save

Getting Started

var numbersToday = require('numbers-today');

// Counting

numbersToday('username', 'password')
    .button('blogposts')
    .hit();

numbersToday('token')
    .button('moneyspent')
    .hit(15.5, 'NY')
    .hits(function (hits) {
        console.log(hits);
    })
    .error(function (err) {
        // Handle any error here.
    });

// Support for other API features forthcoming.

Contributing

To set up your development environment for numbers-today:

  1. Clone this repo to your desktop,
  2. in the shell cd to the main folder,
  3. hit npm install, and
  4. hit npm install gulp -g if you haven't installed gulp globally yet.
  5. Make a copy of credentials-sample.json with the name credentials.json and enter the following data:
  6. Run gulp dev. (Or run node ./node_modules/.bin/gulp dev if you don't want to install gulp globally.)

gulp dev watches all source files and if you save some changes it will lint the code and execute all tests. The test coverage report can be viewed from ./coverage/lcov-report/index.html.

If you want to debug a test you should use gulp test-without-coverage to run all tests without obscuring the code by the test coverage instrumentation.

Change History

  • v0.1.1 (2015-05-09)
    • Improved error handling
  • v0.1.0 (2015-05-09)
    • Initial version

License (ISC)

In case you never heard about the ISC license it is functionally equivalent to the MIT license.

See the LICENSE file for details.