organic-globdir
v0.0.4
Published
Organelle for emitting every file found within dir recursively.
Downloads
3
Readme
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 structureroot
-dna.root
valueemitReady
-"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 havingerr
- null or Error value
when
reactOn
is not provided the organelle is triggered with its dna upon building.setting
waitReadyForEach
to true will useeachLimit
's value to emitforEachEmit
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.