new-interval

1.0.0 • Public • Published

new-interval Build Status

A real Interval object

Getting Started

Install the module with: npm install new-interval

// Only for Node.
var Interval = require('new-interval').Interval;

var interval = new Interval(3000, function(){
	doSomethingAwsome();
});
interval.start();
interval.clear();

// or the same can be acomplished by
var interval = Interval.set(3000, function(){
	doSomethingAwsome();
});

interval.clear();

Remember that Lo-Dash or Underscore are required to load before using Intervals!

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

License

Copyright (c) 2014 Alan Szpigiel
Licensed under the MIT license.

Package Sidebar

Install

npm i new-interval

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • fedekiwo
  • alansz