zhf.calculated-profit
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

本项目是基于 https://github.com/zhouhuafei/npm-publish-ts/tree/build-ts-use-gulp-babel 项目改造

使用案例

import { calculatedProfit } from 'zhf.calculated-profit'

// 5000进1件货,6000卖,平台收取百分之5手续费后,我应该赚700
console.log(calculatedProfit({
  costPrice: 5000,
  num: 1,
  sellingPrice: 6000,
  commissionRate: 0.05
})) // 700

Readme

Keywords

none

Package Sidebar

Install

npm i zhf.calculated-profit

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

3.08 kB

Total Files

4

Last publish

Collaborators

  • zhouhuafei