Displaying 1 to 20 from 82 results

request-promise - The simplified HTTP request client 'request' with Promise support

  •    Javascript

The simplified HTTP request client 'request' with Promise support. Powered by Bluebird.Request and Bluebird are pretty awesome, but I found myself using the same design pattern. Request-Promise adds a Bluebird-powered .then(...) method to Request call objects. By default, http response codes other than 2xx will cause the promise to be rejected. This can be overwritten by setting options.simple = false.

taskr - A fast, concurrency-focused task automation tool.

  •    Javascript

Taskr is a highly performant task runner, much like Gulp or Grunt, but written with concurrency in mind. With Taskr, everything is a coroutine, which allows for cascading and composable tasks; but unlike Gulp, it's not limited to the stream metaphor. Taskr is extremely extensible, so anything can be a task. Our core system will accept whatever you throw at it, resulting in a modular system of reusable plugins and tasks, connected by a declarative taskfile.js that's easy to read.

p-progress - Create a promise that reports progress

  •    Javascript

Useful for reporting progress to the user during long-running async operations.Same as the Promise constructor, but with an appended progress parameter in executor.




node-promise-mysql

  •    Javascript

Promise-mysql is a wrapper for mysqljs/mysql that wraps function calls with Bluebird promises. Usually this would be done with Bluebird's .promisifyAll() method, but mysqljs/mysql's footprint is different to that of what Bluebird expects. At the minute only the standard connection (using .createConnection()) and the pool (using .createPool()) is supported. createPoolCluster is not implemented yet.

got-promise - Promise wrapper around sindresorhus/got

  •    Javascript

Promise wrapper of sindresorhus/got


p-timeout - Timeout a promise after a specified amount of time

  •    Javascript

Returns a decorated input that times out after ms time.If you pass in a cancelable promise, specifically a promise with a .cancel() method, that method will be called when the pTimeout promise times out.

p-times - Run promise-returning & async functions a specific number of times concurrently

  •    Javascript

Returns a Promise that is fulfilled when all promises returned from mapper are fulfilled, or rejects if any of the promises reject. The fulfilled value is an Array of the fulfilled values returned from mapper in order.Number of times to call mapper.

p-wait-for - Wait for a condition to be true

  •    Javascript

Can be useful for polling.Returns a Promise that resolves when condition returns true. Rejects if condition throws or returns a Promise that rejects.

p-waterfall - Run promise-returning & async functions in series, each passing its result to the next

  •    Javascript

Returns a Promise that is fulfilled when all promises returned from calling the functions in tasks are fulfilled, or rejects if any of the promises reject. The fulfilled value is the value returned from the last task.Functions are expected to return a value. If a Promise is returned, it's awaited before continuing with the next task.

p-whilst - While a condition returns true, calls a function repeatedly, and then resolves the promise

  •    Javascript

Think async version of the while statement.While condition returns true, executes action repeatedly, and then resolves the promise. Rejects if action returns a promise that rejects or if an error is thrown anywhere.