concise-promise
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

concise-promise

A library to make working with Promise chain more concise

to begin

npm i concise-promise

use case

When I was using simple-git to write a handy utility, I was doing like:

git.add(...).then(git.commit).then(git.push)

I think that's pretty verbose, can I just do this instead?

git.add(...).commit(...).push()

So I started this experimental lib and try if I can improve this in limited senarios.

examples

Please see test cases

/concise-promise/

    Package Sidebar

    Install

    npm i concise-promise

    Weekly Downloads

    1

    Version

    0.2.1

    License

    ISC

    Unpacked Size

    17.2 kB

    Total Files

    15

    Last publish

    Collaborators

    • jackkcwong