@tipser/calculate-discount-percentage
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

calculateDiscountPercentage function for Tipser

Changelog

How to use ?

Install the package

First - install via npm

npm install @tipser/calculate-discount-percentage

or via yarn

yarn add @tipser/calculate-discount-percentage

Import it in your source code

import { calculateDiscountPercentage } from '@tipser/calculate-discount-percentage'; 

Example of usage

Calculate discount percentage

import { calculateDiscountPercentage } from '@tipser/calculate-discount-percentage'; 

console.log(calculateDiscountPercentage(100, 10));
// prints: 10

/@tipser/calculate-discount-percentage/

    Package Sidebar

    Install

    npm i @tipser/calculate-discount-percentage

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    4.38 kB

    Total Files

    11

    Last publish

    Collaborators

    • tipser