0.0.1 • Published 11 years ago
organic-cronactivity v0.0.1
crontactivity organelle
Provides ability to a cell for running given activity on specified by crontime format periods.
install
npm install organic-cronactivity --savedna
{
  "source": "node_modules/cronactivity",
  "cwd": {
    "main": "dir/relative/to/cwd/activity"
  },
  "cronTime": "42 * * * * *",
  "customProperty": "Example run every 42 seconds"
}activity.js
module.exports = function(plasma, dna){
  console.log(dna.customProperty) // Example run every 42 seconds
}reacts to chemical kill
Stops the cron activity
Notes
Starts the cron activity during organelle initialization using cron package
0.0.1
11 years ago