<commit_before>seneca-cart - a [Seneca](http://senecajs.org) plugin
======================================================

Seneca shopping cart plugin

[![Build Status](https://travis-ci.org/rjrodger/seneca-cart.png?branch=master)](https://travis-ci.org/rjrodger/seneca-cart)

[![NPM](https://nodei.co/npm/seneca-cart.png)](https://nodei.co/npm/seneca-cart/)
[![NPM](https://nodei.co/npm-dl/seneca-cart.png)](https://nodei.co/npm-dl/seneca-cart/)

Prerequisites
-------------

seneca-cart is a [Seneca](http://senecajs.org/) plugin.  In order to use seneca-cart, you must have Seneca installed in your project.  Make sure `seneca` is a dependency in your `package.json` file, and run `npm install`

Setup
-----

TODO

Commands
--------

TODO

Example
-------

TODO<commit_msg>Updated readme with a few mcommands<commit_after>seneca-cart - a [Seneca](http://senecajs.org) plugin
======================================================

Seneca shopping cart plugin

[![Build Status](https://travis-ci.org/rjrodger/seneca-cart.png?branch=master)](https://travis-ci.org/rjrodger/seneca-cart)

[![NPM](https://nodei.co/npm/seneca-cart.png)](https://nodei.co/npm/seneca-cart/)
[![NPM](https://nodei.co/npm-dl/seneca-cart.png)](https://nodei.co/npm-dl/seneca-cart/)

Prerequisites
-------------

seneca-cart is a [Seneca](http://senecajs.org/) plugin.  In order to use seneca-cart, you must have Seneca installed in your project.  Make sure `seneca` is a dependency in your `package.json` file, and run `npm install`

Setup
-----

TODO

Commands
--------

### create(options, callback)
Creates a new cart entity for persisting data about the status and items of the unique shopping cart.
* options `Object` - optional custom keys and values to be set on the cart object.  These custom properties will persist on the cart object.
* callback `Function` - takes two arguments, `err` and `out`.  `out` is an object with property `cart`.  `cart` has the following properties:
	- id `String` - a unique identifier for the persistent cart.
	- created `Date` - a JavaScript `Date` object that shows the time and date of the cart's creation
	- modified `Date` - a JavaScript `Date` object that shows the time and date of the cart's last modification
	- entries `Array` - a list of all product entities currently in the cart.  Should initially be empty.
	- total `Number` - the dollar total of all items in the cart.
	- status `String` - either 'open' or 'closed', indicating the current status of the cart.


Example
-------

TODO
{'fraction_non_alphanumeric': 0.18894192521877487, 'fraction_numerical': 0.0, 'mean_word_length': 3.799618320610687, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6552183', 'n_tokens_mistral': 809, 'n_tokens_neox': 780, 'n_words': 250}