2.5.0 • Published 5 years ago

@naturalcycles/promise-lib v2.5.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@naturalcycles/promise-lib

Useful promise functions, inspired by Bluebird, p-map, p-props

npm min.gz size npm.io Maintainability Test Coverage code style: prettier

Why

  • bluebird is outdated
  • p-props requires separate @types/p-props which has issues
  • Both p-map and p-props do export default, which is not IDE-friendly. IDEs don't automatically suggest to import these functions

Features

  • First-class Typescript support, typings included and working
  • IDE-friendly, IDE automatically suggest to import from proper place
  • Bundled as es2018, with native async/await, no transpilation
  • Based (almost copy-pasted) on battle-tested implementations (p-map), tests included

API

  • pMap
  • pBatch
  • pFilter
  • pProps
  • pDelay
  • pHang
  • pState - returns the current state of the Promise, one of resolved | rejected | pending.
  • pDefer
2.5.0

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago