nicecoders tools
npm install @nicecode/tools``js`
npm i @nicecode/tools --save
npm i babel-plugin-import --save-dev
属于可选配置,主要是提供按需加载
`json
{
...,
plugins: [
[
"import", {
"libraryName": "@nicecode/func",
"camel2DashComponentName": false
}
]
]
}
`
> 本文以 mathUtil 通用模块为例
`js
import { mathUtil } from '@nicecode/func';
mathUtil.castArray(1);
// => [1]
``
| 模块 | 说明 |
| ----------- | ---------------- |
| arrayUtil | 数组方法合集 |
| langUtil | lang 方法合集 |
| mathUtil | 数字方法合集 |
| arrayUtil | 数组方法合集 |
| funcUtil | 常用函数方法合集 |
| collectUtil | 集合类方法合集 |
| floatUtil | 数字处理工具集 |
| stringUtil | 字符串方法集 |
| objUtil | 对象类方法 |
| validator | 正则表达式合集 |
| checkDevice | 环境判断工具集 |
| 更多模块... | 开发中... |