util-helpers 4.3.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,7 +20,7 @@ yarn add util-helpers
20
20
 
21
21
  在浏览器中使用 `script` 标签直接引入文件,并使用全局变量 `utilHelpers` 。
22
22
 
23
- `npm` 包的 `util-helpers/dist` 目录下提供了 `util-helpers.js` 以及 `util-helpers.min.js`。你也可以通过 [UNPKG](https://unpkg.com/util-helpers@latest/dist/) 进行下载。
23
+ `npm` 包的 `util-helpers/dist` 目录下提供了 `util-helpers.js` 以及 `util-helpers.min.js`。你也可以通过 [UNPKG](https://unpkg.com/util-helpers@latest/dist/) 下载到本地进行使用。或者直接使用 [UNPKG 线上版本](https://unpkg.com/util-helpers@latest/dist/util-helpers.min.js)<sup> _注意版本_ </sup>。
24
24
 
25
25
  ## 示例
26
26
 
@@ -49,6 +49,7 @@ formatMoney('1000'); // => 1,000.00
49
49
  - [dataURLToBlob](https://doly-dev.github.io/util-helpers/module-Processor.html#.dataURLToBlob) - 将 DataURL 转为 Blob 对象
50
50
  - [formatMoney](https://doly-dev.github.io/util-helpers/module-Processor.html#.formatMoney) - 金额格式化
51
51
  - [formatBankCard](https://doly-dev.github.io/util-helpers/module-Processor.html#.formatBankCard) - 银行卡格式化
52
+ - [normalizeString](https://doly-dev.github.io/util-helpers/module-Processor.html#.normalizeString) - 规整化字符串,如果值为 `undefined` `null` 转为 '',如果不是字符串类型则转为字符串
52
53
  - [numberToChinese](https://doly-dev.github.io/util-helpers/module-Processor.html#.numberToChinese) - 数字转中文数字
53
54
  - [parseIdCard](https://doly-dev.github.io/util-helpers/module-Processor.html#.parseIdCard) - 解析身份证号码
54
55
  - [replaceChar](https://doly-dev.github.io/util-helpers/module-Processor.html#.replaceChar) - 替换字符,应用场景如:脱敏
@@ -93,7 +94,6 @@ formatMoney('1000'); // => 1,000.00
93
94
  - [store2] - 丰富了 localStorage 和 sessionStorage 功能(JSON,命名空间,扩展等)
94
95
  - [uuid] - 生成通用唯一识别码(Universally Unique Identifier)
95
96
  - [JSZip] - 创建、读取和编辑 zip 文件
96
- <!-- - [data-urls] - 根据 WHATWG Fetch 标准解析 Data URLs -->
97
97
 
98
98
  [lodash]: https://www.npmjs.com/package/lodash
99
99
  [query-string]: https://www.npmjs.com/package/query-string