Provides agnostic JavaScript functionality for use in all browser-based applications.
npm install @paychex/platform-browser
import { crossOrigin, stores } from '@paychex/platform-browser';
const { crossOrigin, stores } = require('@paychex/platform-browser');
define(['@paychex/platform-browser'], function(browser) { ... });
define(['@paychex/platform-browser'], function({ crossOrigin, stores }) { ... });
require(['@paychex/platform-browser'], function(browser) { ... });
require(['@paychex/platform-browser'], function({ crossOrigin, stores }) { ... });
const { crossOrigin, stores } = window['@paychex/platform-browser'];
To install the necessary dependencies:
npm install
To generate documentation files:
npm run docs
The @paychex/platform-browser library contains functionality separated into various modules:
name | description |
---|---|
[utils]{@link utils} | A collection of helpful utilities |
[crossOrigin]{@link crossOrigin} | Enables safe asynchronous communication across different origins. |
[stores]{@link stores} | Provides browser-specific Stores to persist and retrieve data on the user's machine. |