Package Exports
- magento-checkout
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (magento-checkout) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
magento-checkout
Installation
npm install magento-checkout --save
Usage
Javascript
var magentoCheckout = require('magento-checkout');
var text = magentoCheckout.escape('Boy & Girl');
Output should be 'Boy & Girl'
TypeScript
import { escape } from 'magento-checkout';
console.log(escape('Boy & Girl'))
Output should be 'Boy & Girl'
AMD
define(function(require,exports,module){
var magentoCheckout = require('magento-checkout');
});
Test
npm run test