egeozcan/ppipe
View on GitHub ↗ ★ 195 TypeScript
pipes values through functions, an alternative to using the proposed pipe operator ( |> ) for ES
6 mentions on Hacker News by 2 people: 0 stories, 6 comments · first 2018-01-20 · latest 2023-09-27
20082026
-
I use ppipe: https://github.com/egeozcan/ppipe Looks tidier to my eyes const newPipe = ppipe.extend({ divide (x, y) { return x / y; }, log(...params) { console.log(...params); return params[params.length - 1]; } }); const res = await…
comment by patates · 2023-09-27 · in Show HN: A JavaScript function that looks and behaves like a pipe operator -
…too! At first, I was so excited to try it, I wanted to "simulate it" via some library I developed: https://github.com/egeozcan/ppipe Then I realized it was super hard to add typings for it (I use Typescript nearly exclusively these days).…
comment by egeozcan · 2022-01-29 · in A pipe operator for JavaScript: introduction and use cases -
Or ppipe, if you want more features (I'm the author): https://github.com/egeozcan/ppipe
comment by egeozcan · 2020-02-20 · in Show HN: Kasaya – A scripting language and runtime for browser automation -
…pipe operator which even got a logo when it got more than a hundred stars, for anyone interested: https://github.com/egeozcan/ppipe (needs ts typings though)
comment by egeozcan · 2020-02-04 · in F# Pipeline Operator in JavaScript with Babel -
…this is self promotion but I think it's relevant if you need something like the pipe operator now: https://github.com/egeozcan/ppipe It's also ironic that I couldn't write this in Typescript because I simply couldn't figure out how. These…
comment by egeozcan · 2018-09-02 · in TypeScript at Google -
…context: I was frustrated with the lack of support for the pipeline operator and came up with this: https://github.com/egeozcan/ppipe - I currently use it on a couple of projects and it really helped make my code more understandable.
comment by egeozcan · 2018-01-20 · in JS things I didn’t know existed