@sead/price-endings
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Price endings

Price endings strategy for marketing.

Installation

npm install @sead/price-endings

Usage

import { PriceEndings } from "@sead/price-endings"

const pe = new PriceEndings()
pe.zer0(3.12) // 3.10

pe.five(3.12) // 3.15

pe.eight(3.12) // 3.18

pe.nine(3.12) // 3.19

pe.parse(3.12, [0]) // 3.10

pe.parse(3.12, [99]) // 3.99

pe.parse(3.01, [9], {excludes: ['09']}) // 3.19

Readme

Keywords

none

Package Sidebar

Install

npm i @sead/price-endings

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

36.2 kB

Total Files

27

Last publish

Collaborators

  • necessarylion