@mudas/util
@mudas/util
A tools library of null、boolean、number、string、datetime、object、array、function、url、currency、map
说明: 该工具同样适用于小程序开发环境(尤其是 uni-app 开发环境),旨在小程序开发中替代 lodash,且与 H5 项目实现工具统一。
文档: 点击查阅使用手册
快速安装
npm install @mudas/util -S
构建参数
默认情况下 babel-loader 不转译所有 node_modules 中的文件,因此单独指定 node_modules 需要让 babel 转译的 esm 模块
module.exports = {
transpileDependencies: [
'@mudas/*'
]
};
注意:以上为
vue.config.js配置方法,其它构建环境请自行查阅相关文档。
使用示例
import {isArray} from '@mudas/util';
isArray([1, 2, 3]);
// => true
目录
数据类型工具
- boolean 布尔值工具
- number 数值工具
- string 字符串工具
- object 对象工具
- null 工具
- empty 空值工具
- array 数组工具
- function 函数工具
- file 文件内容工具
- buffer 工具
- form 表单内容工具
日期时间工具
数据赋值取值工具
数据深度合并工具
数据克隆工具
货币工具
地图工具
URL 地址处理工具
Related Packages
@wmde/vuex-helpers
Helper functions to ease working with Vuex, Centralized State Management for Vue...
8,736
4
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.14 | ^2.6.12 | MIT | |
| 0.0.13 | ^2.6.12 | MIT | |
| 0.0.12 | ^2.6.12 | MIT | |
| 0.0.11 | ^2.6.12 | MIT | |
| 0.0.10 | ^2.6.12 | MIT | |
| 0.0.9 | ^2.6.12 | MIT | |
| 0.0.8 | ^2.6.12 | MIT | |
| 0.0.7 | ^2.6.12 | MIT | |
| 0.0.6 | ^2.6.12 | MIT | |
| 0.0.5 | ^2.6.12 | MIT | |
| 0.0.4 | ^2.6.12 | MIT | |
| 0.0.3 | ^2.6.12 | MIT | |
| 0.0.2 | ^2.6.12 | MIT | |
| 0.0.1 | ^2.6.12 | MIT |