Simple vanilla JS library to handle shopping cart with common methods following E-Com Plus cart object model
@ecomplus/shopping-cart package can be used to persist and treat shopping cart data on E-Com Plus stores (and not only).
It's available for both Node.js and browser environments.
It may require and doesn't include
core-js (optional) and
@ecomplus/utils (peer dependency).
npm i --save core-js @ecomplus/utils @ecomplus/shopping-cart
npm i --save @ecomplus/utils @ecomplus/shopping-cart
When importing from CDN,
ecomUtils libraries must be included separately and available on window scope.