@alan-liang/qw

Data pipeline utility

Usage no npm install needed!

<script type="module">
  import alanLiangQw from 'https://cdn.skypack.dev/@alan-liang/qw';
</script>

README

qw

Warning: experimental, uses Proxy which is not polyfillable.

Data pipeline utility.

Install

npm install @alan-liang/qw

Usage

import { qw } from '@alan-liang/qw'

qw(Array(16))
  .fill(0)
  .map((_, i) => i)
  .reduce((a, b) => a + b)
  ._(x => x / 2)
  ._.log() // logs 60
  ._.value // => 60

See example.js for detailed usage.