/plask-wrap

Plask wrapper for browserify

Primary LanguageJavaScriptMIT LicenseMIT

plask-wrap

stable

Plask wrapper for browserify.

It uses "browser" field in package.json to avoid requiring "plask" module in the browser and make using -i plask browserify unnecesary when bundling a pex app.

Usage

NPM

It's recommended to use is-plask together with this module

var plask = require('plask-wrap')
var isPlask = require('is-plask')

if (isPlask) {
  var canvas = plask.SkCanvas.create(1280, 720)
}

License

MIT, see LICENSE.md for details.