1.0.0 • Published 2 years ago

shopping-cart-total v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

This is an example node.js module. Do not use.

Installation

npm i shopping-cart-total

Usage

const { getTotal } = require("shopping-cart-total");

const total = getTotal([
  { price: 10, quantity: 1 },
  { price: 20, quantity: 2 },
]);

console.log(total);

// shows 50

License

MIT 2022 - JOSE