2.0.0 • Published 7 years ago

jpex-web v2.0.0

Weekly downloads
2,811
License
ISC
Repository
github
Last release
7 years ago

jpex-web

Default factories for Jpex in a browser environment

Installation

npm install jpex-web --save

Usage

Webpack/Browserify:

var Jpex = require('jpex');
var jpexWeb = require('jpex-web');
Jpex.use(jpexWeb);

or...

var Jpex = require('jpex');
var jpexWeb = require('jpex-web/dist/jpex-web');
Jpex.use(jpexWeb);

HTML/Javascript

<script src="node_modules/jpex/dist/jpex.js"></script>
<script src="node_modules/jpex-web/dist/jpex-web.js"></script>
<script>
// jpex-defaults is automatically registered when imported via script tags
var t = Jpex.$resolve('$promise');
</script>

API

jpex-web automatically includes all factories from the jpex-defaults plugin, plus a few extras:

$promise

Although $promise is already included as part of jpex-defaults, this plugin adds a polyfill that is leveraged when the browser doesn't natively support the Promise object.

$window

This returns the global window object.

$document

This returns the global document object.

2.0.0

7 years ago

2.0.0-alpha.1

7 years ago

2.0.0-alpha.0

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago