Re:Working pipe operator today in pure JavaScript
by gregabbott on Thursday October 09, 2025 @04:17AM
(#45524950)
In another comment, I mentioned a vanilla JavaScript function I published in 2024 called Chute.
https://github.com/gregabbott/chute
In a similar way to the featured project, Chute also uses proxies to work like a pipeline operator. But like in your reply, Chute uses a dot-notation style to chain and send data through a mix of functions and methods.
You might like to see how Chute uses proxies, as it requires no `chainWith` or similar setup step before use. Without setup, Chute can send data through global or local, top-level or nested, native or custom, unary, curried or non-unary functions and methods. It gives non-unary functions the current data at a specific argument position by using a custom-nameable placeholder variable.
The Chute page describes some more of its features: https://gregabbott.pages.dev/chute/
https://dev.to/sethcalebweeks/fluent-api-for-piping-standalo...