pipe-ops
Pipe like transformations in JavaScript.
Pipes
- must implement:
value
,inject
andoptional
functions.
Examples
String transformation:
'Hi %name%! Asdf %other_name% and this is' // "header>(:) <h1>Hi Jacob! Asdf Buren and..Read more..</h1></header>"
You can also move between different types:
var { return data + '... ' + data; }; 'Jacob,Buren' // "# Jacob # Buren ... # Jacob # Buren"