# es6-promise-promise

> module that exports the Promise property from es6-promise

Latest version **1.0.0** (published 2016-05-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install es6-promise-promise
pnpm add es6-promise-promise
yarn add es6-promise-promise
bun add es6-promise-promise
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-05-18 |
| First published | 2016-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Serge havas |
| Maintainers | sinewyk |
| Keywords | es6-promise, promise, export |

## Links

- npm: https://www.npmjs.com/package/es6-promise-promise
- Repository: https://github.com/lrqdo/es6-promise-promise
- Homepage: https://github.com/lrqdo/es6-promise-promise#readme
- Issues: https://github.com/lrqdo/es6-promise-promise/issues
- npm.io page: https://npm.io/package/es6-promise-promise

## Dependencies (1)

- [es6-promise](https://npm.io/package/es6-promise.md) ^3.2.1

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-05-18

## README

# es6-promise-promise

Simple package that exports the `Promise` property from [`es6-promise`](https://github.com/stefanpenner/es6-promise).

# Install
`npm i es6-promise-promise`

# Usage
Instead of
`var Promise = require('es6-promise').Promise;`

just

`var Promise = require('es6-promise-promise');`

# Why I created this
If you want to ship less code sometimes you just want to replace some Promise implementations by another.

For example if you don't want `universal-promise` in [yup](https://github.com/jquense/yup) and you want to alias it (webpack configuration), you can't do it easily with
```
alias: {
    'universal-promise': 'es6-promise',
}
```
because one is a promise, the other an object.

Fix this by using
```
alias: {
    'universal-promise': 'es6-promise-promise',
}
```
and you're good to go.

Same thing with the [ProvidePlugin](http://webpack.github.io/docs/list-of-plugins.html#provideplugin) for example ...
This won't work
```
new webpack.ProvidePlugin({
    Promise: 'es6-promise', // Promise is not a function
})
```
This will
```
new webpack.ProvidePlugin({
    Promise: 'es6-promise-promise', // works as expected
})
```

---
_Source: https://npm.io/package/es6-promise-promise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
