Skip to content

adlawson/coffee-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clock

Clock based event emitting.

Version: 0.2.0
Build status: Build Status

About

This library was originally intended for other purposes but was deemed insufficient.

It isn't reliable enough for time-sensitive operations because it is merely built ontop of setTimeout. It is still useful, however, for polling and other time independent applications.

Usage

var clock = require('clock');

clock.tock(function () {
    console.log('tock');
});

clock.tick(1000);

// tock
// tock
// tock
// ... (every 1000ms)

Installation

This library isn't available from the NPM repository or any other package manager, but you can still add it to your package.json

{
  "dependencies": {
    "clock": "git://github.com/adlawson/clock.git#master"
  }
}

Contributing

I accept contributions to the source via Pull Request, but you must run the tests and compile the JavaScript before it will be considered for merge. The source for this library is written in CoffeeScript, but it is distributed with the compiled JavaScript.

$ npm test                # Run tests
$ npm run-script compile  # Compile JavaScript

License

The content of this library is released under the MIT License by Andrew Lawson.
You can find a copy of this license at http://www.opensource.org/licenses/mit

About

🚨 [UNMAINTAINED] Clock based event emitting

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors