Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2018 (2)
20082026
  1. 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…
  2. …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).…
  3. Or ppipe, if you want more features (I'm the author): https://github.com/egeozcan/ppipe
  4. …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)
  5. …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
  6. …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