shopping-cart-total

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i shopping-cart-total

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

1.25 kB

Total Files

4

Last publish

Collaborators

  • jfromaniello