Update readme and package.json

This commit is contained in:
2014-09-24 13:34:32 +05:30
parent bdccf6ccc3
commit 56463869fc
2 changed files with 21 additions and 5 deletions
+20
View File
@@ -24,7 +24,27 @@ Overview
* ```state```: NOT_RUNNING | RUNNING. * ```state```: NOT_RUNNING | RUNNING.
* ```isLoadingTakingPlace```: onLoadMore function is taking place. * ```isLoadingTakingPlace```: onLoadMore function is taking place.
Usage
-----
```javascript
var JobManager = require('job-manager').JobManager;
var jm = new JobManager({ configuration options});
jm.tasks = tasks;
jm.onLoadMore = function(cb){// code; if( !tasks ){ this.endReached = true; } cb()}
jm.work = function(task, worker,cb){ // worker.process( task, cb ); }
jm.onError = function( err, task, worker){ log( err, task, worker ); }
jm.onStopped = function(){ // log('Finished'); cb(); }
jm.start();
// jm.stop();
```
Demo Demo
---- ----
A pure javascript demo at http://harish2704.github.io/jobmanager-demo/test.html will give a more cleat idea. This demo uses the same JobManager class to do the animation. A pure javascript demo at http://harish2704.github.io/jobmanager-demo/test.html will give a more cleat idea. This demo uses the same JobManager class to do the animation.
Self promotion
--------------
* I am a javascript freelancer. You can hire me.
* star my repos.
+1 -5
View File
@@ -16,11 +16,7 @@
"email": "harish2704@gmail.com" "email": "harish2704@gmail.com"
}, },
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"readme": "ERROR: No README data found!", "readme": "README.md",
"_id": "job-manager@0.0.1", "_id": "job-manager@0.0.1",
"dist": {
"shasum": "06c8c7558143c473f748db83876de9d0a449c764"
},
"_resolved": "git+https://github.com/harish2704/node-job-manager#971f97e5f5985d58614fd3dbcca583dba250e964",
"_from": "git+https://github.com/harish2704/node-job-manager" "_from": "git+https://github.com/harish2704/node-job-manager"
} }