organic-cronactivity

0.0.1 • Public • Published

crontactivity organelle

Provides ability to a cell for running given activity on specified by crontime format periods.

install

npm install organic-cronactivity --save

dna

{
  "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

Readme

Keywords

none

Package Sidebar

Install

npm i organic-cronactivity

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • outbounder