Skip to content

Organelle which overrides standard `console` object methods ["log", "debug", "error", "warn", "info", "trace"] and emits given arguments instead of writing to stdout/stderr

outbounder/organic-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oragnic-console

Organelle which overrides standard console object methods and transforms their calls to emitted chemicals.

dna

{
  "emitEvery": {
    "type": "consoleOutputChemical",
    // ... optional extra properties 
  },
  "reactOn": "String" // optional, if not set will issue reaction upon dna,
  "disposeOn": "String" // optional,
  "methods": ["log", "debug", "error", "warn", "info", "trace"]
}

chemical structure send to Plasma

{
  type: "consoleOutputChemical",
  method: String,
  arguments: [ Mixed ],
  // ... optional extra properties from dna
}

Note: chemical.method represents the method name captured from console ; chemical.arguments respectively are the arguments been given to the method at that time.

About

Organelle which overrides standard `console` object methods ["log", "debug", "error", "warn", "info", "trace"] and emits given arguments instead of writing to stdout/stderr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published