# kk-format

> 格式化工具函数包

Latest version **1.0.2** (published 2019-07-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install kk-format
pnpm add kk-format
yarn add kk-format
bun add kk-format
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-07-22 |
| First published | 2019-05-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kk-wxw |
| Maintainers | wuxiaowei |
| Keywords | format |

## Links

- npm: https://www.npmjs.com/package/kk-format
- npm.io page: https://npm.io/package/kk-format

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-07-22
- 1.0.1 — 2019-07-22
- 1.0.0 — 2019-05-29

## README

# 格式化函数工具包
## 安装
-  npm安装
    ```
    npm install kk-format -S
    ```
    或
-  script标签引入

    ```
    <script src="//i.keking.cn/kk-format/index.js"></script>
    ```

## 使用
- 若为 npm 安装

  在所需要的组件中引入即可
    ```
    import kkFormat from 'kk-format'

    let num = 10000.2222;
    kkFormat.formatMoneyThousandBit(num) // 输入结果为 "10,000.22"
    ```
## 方法

- formatMoneyThousandBit 

    说明: 千分位形式格式化金额，保留小数点后 2 位。
    参数：String 或 Number
    返回值: String

    例： kkFormat.formatMoneyThousandBit(10000.2222); // => "10,000.22"

---
_Source: https://npm.io/package/kk-format · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
