0.0.4 • Published 9 years ago

organic-globdir v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

organic-globdir

Organelle for emitting every file found within dir recursively.

dna

{
  "root": "path/relative/to/cwd",
  "pattern": "/**/*.ext",
  "forEachEmit": {
    "value": ""
  },
  "emitReady": "",
  "reactOn": "",
  "eachLimit": 1,
  "waitReadyForEach": false
}
  • forEachEmit is Chemical body been send into Plasma with added properties:

    • data - glob-stream's File structure
    • root - dna.root value
    • emitReady - "organic-globdir/"+file.path value to be used for notification once emited chemical's reaction has been completed.
  • emitReady is Chemical type value, when provided will be used to emit into Plasma chemical having

    • err - null or Error value
  • when reactOn is not provided the organelle is triggered with its dna upon building.

  • setting waitReadyForEach to true will use eachLimit's value to emit forEachEmit chemicals in prallel batches and wait for their Ready feedback to continue with next batch

reacts to dna.reactOn value

Triggers globdir organelle using provided chemical as dna.