Activity
Activity Manager for any kind of statuses based on ids
Getting Started
npm install activity --save-dev
Create an activity
var Activity = ; var activity = statuses: "online" "offline" "away";
Set an status
activity; // you can set an status without checking if it was appliedactivity;activity;
Get statuses
activity;
Get one status
activity;
Get ids by an status
activity;
TODO
- Add option to use Redis to store the current statuses.
- A way to clear all ids.
Contribute
- Fork this repo
- run
npm install
- Create the tests for the new functionality or bug case
- Put your awesome code
- run
grunt test
- All good?, place a pull request