1.0.0 • Published 5 years ago
shopping-cart-example v1.0.0
#This is a simple module to add item to shopping cart.
npm install shopping-cart-sample --
#use the below method to add items to the cart
#it takes an 2 REST argument of product/item details
addToCart.addToCart((item1, item2), (qty1, qty2))
#Use the below method to see total number of items added to the cart
console.log(addToCart.allItemsInCart())
1.0.0
5 years ago