Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

es6-promise-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-promise-plugin

ES6-Promises polyfill for Cordova/PhoneGap

  • 4.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

PromisesPlugin

ES6-Promises polyfill for Cordova/PhoneGap

Motivation

The web view components on Cordova supported platforms lack suport for ES6 Promise. A polyfill library bundled with the plugin fixes the limitation. However, as more plugin use promises, the application developer using these plugins will end up with multiple promise polyfill libraries.

This plugin attempts to fix this situation by providing a Promise polyfill so that other plugins can rely on this functionality.

How to use

Configure your plugin's plugin.xml by adding this dependency:

<dependency id="es6-promise-plugin" version="4.1.0" />

Cordova CLI takes care to install PromisesPlugin automatically:

$ cordova plugins add {yourPlugin}

> Installing "{yourPlugin}" for {platform}
> Installing "es6-promise-plugin" for {platform}

This is all. window.Promise is available for use in your plugin.

Credits

This plugin wraps es6-promise in a Cordova/PhoneGap friendly way.

License

The plugin is available under MIT license.

FAQs

Package last updated on 27 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc