Package Exports
- concise-promise
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (concise-promise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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