Skip to content

Instantly share code, notes, and snippets.

@vshjxyz
Created September 8, 2017 08:26
Show Gist options
  • Save vshjxyz/e0c07823d495af40c828b820dbcd5108 to your computer and use it in GitHub Desktop.
Save vshjxyz/e0c07823d495af40c828b820dbcd5108 to your computer and use it in GitHub Desktop.
Mutator-io transformer example
mutator.transform('myPipeName', msg => `${msg} my transformation` as TransformStream)
mutator.transform('myPipeName', msg => Promise.resolve(`${msg} my transformation promise`) as TransformStream)
mutator.transform('myPipeName', msg => Observable.of(`${msg} my transformation observable`) as TransformStream)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment