Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

beerbay-math

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beerbay-math

  • 1.1.4
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
1
Weekly downloads
 
Created
Source

Functions

getCartQuantity(cart)

Return the cart

getCartPrice(cart)

Sum up all of the product prices

getSelectedCountry(name)

Given a Country Name, return the data for it

getProductPrice(product)

Given a Product, return the price

getProductQuantity(product)

Given a Product in cart, return the quantity

packQuantity(cart, selectedCountry)

Given cart and selected country, return the amount of packages needed

packFreeQuantity(cart, selectedCountry)

Given a cart and selected country calculates the amount of packs with free shipping

getShippingGross(cart, selectedCountry)
getShippingFinal(cart, selectedCountry)

Given a cart and selected country, calculates total shipping cost

getCartQuantity(cart)

Return the cart

Kind: global function

ParamType
cartArray.<any>

getCartPrice(cart)

Sum up all of the product prices

Kind: global function

ParamType
cartArray.<any>

getSelectedCountry(name)

Given a Country Name, return the data for it

Kind: global function

ParamType
nameString

getProductPrice(product)

Given a Product, return the price

Kind: global function

ParamType
productany

getProductQuantity(product)

Given a Product in cart, return the quantity

Kind: global function

ParamType
productany

packQuantity(cart, selectedCountry)

Given cart and selected country, return the amount of packages needed

Kind: global function

ParamType
cartArray.<any>
selectedCountryany

packFreeQuantity(cart, selectedCountry)

Given a cart and selected country calculates the amount of packs with free shipping

Kind: global function

ParamType
cartArray.<any>
selectedCountryany

getShippingGross(cart, selectedCountry)

Kind: global function
Descsription: Given a cart and selectedCoutnry calculate gross shipping costs

ParamType
cartArray.<any>
selectedCountryany

getShippingFinal(cart, selectedCountry)

Given a cart and selected country, calculates total shipping cost

Kind: global function

ParamType
cartArray.<any>
selectedCountryany

Keywords

FAQs

Package last updated on 02 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc