@elementary/pointfree

Helpers Functions to convert your Pointfull Code to Pointfree Code

Usage no npm install needed!

<script type="module">
  import elementaryPointfree from 'https://cdn.skypack.dev/@elementary/pointfree';
</script>

README

Pointfree

Helper Functions to turn your Pointfull Code to Pointfree Code

Install

$ npm i @elementary/pointfree

Before Pointfree

PromiseA().then(x => PromiseB(x)).then(y => PromiseC(y)).then(......)

Is there any way so that I can remove those . 😕

After Pointfree

import { then } from '@elementary/pointfree'
import { compose } from '@elementary/core'

compose(then(......), then(x => PromiseC(x)), then(x => PromiseB(x)), PromiseA)()

Yay, Thank you Pointfree 😃