hook.io icon indicating copy to clipboard operation
hook.io copied to clipboard

Add ability to set Hook.inputs and Hook.outputs

Open Marak opened this issue 10 years ago • 3 comments

There should be two new properties on hook resource, Hook.inputs, and Hook.outputs.

Both properties are arrays of strings which contain names of hooks.

inputs are piped left to right into the hook. outputs are piped left to right from the output of the hook.

The logic for this should be easy since we are using all streams and have access to .pipe().

Marak avatar Jun 28 '15 17:06 Marak

I attempted a first version of this and ended up doubling back and refactoring out a few modules from hook.io core into separate projects.

This should be easier to implement now.

If anyone wants to take a shot at it, please do. If not, I will most likely attempting again next month.

Marak avatar Sep 13 '15 00:09 Marak

Once the additional refactors from #136 are completed, this should be even easier to implement.

Marak avatar Sep 21 '15 23:09 Marak

We've not got the ability to chain services as middlewares.

This is really cool. Any service can act as an input or middleware.

Will be deployed soon.

Marak avatar Feb 28 '17 06:02 Marak