A pipe operator for JavaScript: introduction and use cases

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • ppipe

    pipes values through functions, an alternative to using the proposed pipe operator ( |> ) for ES

  • I've been experimenting with this via a babel plugin for a while.

    The difference in ergonomics is huge, and it's readable 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).

    Anyway, I can't wait this to be adopted by Typescript!

  • generator

    Generator module. (by preludejs)

  • You can type it, take a look at pipe and pipe1 in [0].

    [0] https://github.com/preludejs/generator/tree/master/src

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • lodash

    A modern JavaScript utility library delivering modularity, performance, & extras.

  • How so? Looks like filter builds a new array, and so does map? And both while-loops over the entire input?

    https://github.com/lodash/lodash/blob/master/filter.js

    https://github.com/lodash/lodash/blob/master/map.js

    With a quick search I found this:

    https://hackernoon.com/es6-lodash-native-javascript-nodejs-e...

    Which seems to indicate little difference?

  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts