Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "moonworker", | ||
"version": "0.0.1", | ||
"description": "Worker Runner =D ", | ||
"version": "0.0.2", | ||
"description": "MoonWorker - Task Runner", | ||
"main": "worker.js", | ||
@@ -9,28 +9,18 @@ "scripts": { | ||
}, | ||
"author": { | ||
"name": "guilherme", | ||
"url": "coder" | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/scup/moonworker.git" | ||
}, | ||
"license": "ISC", | ||
"_id": "moon-wowker@0.0.1", | ||
"_shasum": "37b4bc7045be44edda36eac136e7b537754076af", | ||
"_from": "moon-wowker@*", | ||
"_npmVersion": "2.14.2", | ||
"_nodeVersion": "4.0.0", | ||
"_npmUser": { | ||
"name": "guisouza", | ||
"email": "gui_souza@me.com" | ||
"keywords": [ | ||
"worker", | ||
"runner", | ||
"cron", | ||
"jobs" | ||
], | ||
"author": "Guilherme (Coder)", | ||
"bugs": { | ||
"url": "https://github.com/scup/moonworker/issues" | ||
}, | ||
"dist": { | ||
"shasum": "37b4bc7045be44edda36eac136e7b537754076af", | ||
"tarball": "http://registry.npmjs.org/moon-wowker/-/moon-wowker-0.0.1.tgz" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "guisouza", | ||
"email": "gui_souza@me.com" | ||
} | ||
], | ||
"directories": {}, | ||
"_resolved": "https://registry.npmjs.org/moon-wowker/-/moon-wowker-0.0.1.tgz" | ||
"homepage": "https://github.com/scup/moonworker#readme" | ||
} |
@@ -1,37 +0,1 @@ | ||
var Worker = function(params){ | ||
'use Strict'; | ||
var action = params.step; | ||
var interval = params.interval; | ||
var autoplay = params.autoplay || false; | ||
var timer | ||
var timesRunned = 0 | ||
var stopped = false; | ||
function run(){ | ||
setTimeout(function(){ | ||
action(); | ||
timesRunned++; | ||
if (!stopped) | ||
run(); | ||
},interval) | ||
} | ||
function stop(){ | ||
stopped = true; | ||
} | ||
(function tryToRun(){ | ||
if (autoplay) | ||
run(); | ||
})() | ||
return { | ||
run : run, | ||
stop : stop, | ||
timesRunned : function(){ | ||
return timesRunned | ||
}, | ||
} | ||
} | ||
module.exports = require('src/worker') |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4753
7
92
1
2
1
3
0