0.2.1 • Published 6 years ago

concise-promise v0.2.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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