JSPM

concise-promise

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q33597F
  • License ISC

a library to make working with Promise chain more concise

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