https://github.com/bullgit/promise-promise
A funny Promise API for those who can't keep promises.
https://github.com/bullgit/promise-promise
Last synced: 5 months ago
JSON representation
A funny Promise API for those who can't keep promises.
- Host: GitHub
- URL: https://github.com/bullgit/promise-promise
- Owner: bullgit
- License: mit
- Created: 2016-12-07T20:19:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-14T15:44:53.000Z (over 6 years ago)
- Last Synced: 2025-09-21T02:55:50.983Z (9 months ago)
- Language: JavaScript
- Homepage: https://bullg.it/promise-promise
- Size: 88.9 KB
- Stars: 14
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://bullg.it/)
[](https://bullg.it/)
[](http://badge.fury.io/js/promise-promise)
[](https://travis-ci.org/bullgit/promise-promise)
[](https://coveralls.io/github/bullgit/promise-promise?branch=master)
[](https://david-dm.org/bullgit/promise-promise#info=devDependencies)
[](https://www.youtube.com/watch?v=qRC4Vk6kisY)
# promise-promise
> A funny Promise wrapper for those who can't keep promises. There's a 50:50 chance that the promise will be fulfilled. If not, it rejects with a random developer excuse. ππ Good luck π
## Install
```
$ npm install promise-promise --save
```
## Usage
```javascript
import Promise from 'promise-promise';
const myAsyncOperation = new Promise(resolve => {
resolve('I should resolve π±');
});
myAsyncOperation
.then(response => {
console.log(response); // Sometimes it resolves
})
.catch(error => {
console.log(err); // Sometimes not π
});
```
## License
MIT Β© [RenΓ© Viering](http://rene.js.org)