0.1.0 • Published 6 years ago

sketch-polyfill-promise v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

sketch-polyfill-promise

A Promise polyfill for sketch inspired by promise-polyfill. It is automatically included (when needed) when using skpm.

It takes care of keeping the script around so that Sketch won't crash when your Promise resolves.

Installation

npm i -S sketch-polyfill-promise

Usage

const Promise = require('sketch-polyfill-promise')

new Promise((resolve, reject) => {
  ...
})