Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reklatsmasters/run-success
Runs the task until it doesn't come to the end successfully
https://github.com/reklatsmasters/run-success
Last synced: 24 days ago
JSON representation
Runs the task until it doesn't come to the end successfully
- Host: GitHub
- URL: https://github.com/reklatsmasters/run-success
- Owner: reklatsmasters
- License: mit
- Created: 2014-12-28T18:59:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-20T11:25:00.000Z (almost 10 years ago)
- Last Synced: 2024-10-08T09:10:22.135Z (30 days ago)
- Language: JavaScript
- Size: 246 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
run-success
===========
[![travis](https://travis-ci.org/ReklatsMasters/run-success.svg)](https://travis-ci.org/ReklatsMasters/run-success)
[![npm](https://img.shields.io/npm/v/run-success.svg)](https://npmjs.org/package/run-success)
[![license](https://img.shields.io/npm/l/run-success.svg)](https://npmjs.org/package/run-success)
[![downloads](https://img.shields.io/npm/dm/run-success.svg)](https://npmjs.org/package/run-success)
[![Code Climate](https://codeclimate.com/github/ReklatsMasters/run-success/badges/gpa.svg)](https://codeclimate.com/github/ReklatsMasters/run-success)
[![Test Coverage](https://codeclimate.com/github/ReklatsMasters/run-success/badges/coverage.svg)](https://codeclimate.com/github/ReklatsMasters/run-success)Runs the task until it doesn't come to the end successfully
##usage
```js
var success = require('run-success');
var request = require('request');var task = function(cb) {
request('http://example.com', function(err, response){
if (err) {
return cb(err);
}cb(null, response);
});
}success(task, {count:10}, function(err, resp){
if (err) {
// epic fail
}// do some
});
```