Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsor/carty
A lightweight and simple to use shopping cart library.
https://github.com/jsor/carty
Last synced: 2 months ago
JSON representation
A lightweight and simple to use shopping cart library.
- Host: GitHub
- URL: https://github.com/jsor/carty
- Owner: jsor
- License: mit
- Created: 2015-02-27T15:44:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T23:23:35.000Z (about 2 years ago)
- Last Synced: 2024-04-28T01:49:20.458Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 767 KB
- Stars: 10
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Carty
=====[![Build Status](https://travis-ci.org/jsor/carty.svg?branch=master)](https://travis-ci.org/jsor/carty)
[![Coverage Status](https://coveralls.io/repos/jsor/carty/badge.svg)](https://coveralls.io/r/jsor/carty)A lightweight and simple to use shopping cart library.
Documentation
-------------* [Introduction](docs/introduction.md)
* Carty with jQuery
* Carty with Node.jsBrowser Support and Polyfills
-----------------------------Carty makes use of ES5 and ES6 features but doesn't ship itself with any
polyfills. Make sure to include polyfills if your targeted environments don't
support the required features.### ES5
You may use ES5 polyfills for the following features (if you have to support
browsers like IE8 for example):* [`Array.prototype.every`](http://kangax.github.io/compat-table/es5/#Array.prototype.every)
* [`Array.prototype.forEach`](http://kangax.github.io/compat-table/es5/#Array.prototype.forEach)
* [`Array.prototype.map`](http://kangax.github.io/compat-table/es5/#Array.prototype.map)
* [`Function.prototype.bind`](http://kangax.github.io/compat-table/es5/#Function.prototype.bind)
* [`Object.keys`](http://kangax.github.io/compat-table/es5/#Object.keys)You can use [es5-shim](https://github.com/es-shims/es5-shim) which provides the
required polyfills.### ES6
You may use ES6 polyfills for the following features:
* [`Promise`](http://kangax.github.io/compat-table/es6/#Promise)
[ES6 Promises](http://people.mozilla.org/%7Ejorendorff/es6-draft.html#sec-promise-constructor)
are supported in Node since version 0.11.13.For browser support, check [caniuse](http://caniuse.com/#search=promise).
You can use [es6-promise](https://github.com/jakearchibald/es6-promise) to
polyfill both Node and browsers.### Other
If you use the localStorage store adapter, you may polyfill
[JSON](http://caniuse.com/#search=JSON) with
[json2](https://github.com/douglascrockford/JSON-js).Running the Tests
-----------------### Node
$ npm install
$ make testLicense
-------Copyright (c) 2015-2020 Jan Sorgalla.
Released under the [MIT](LICENSE?raw=1) license.