@mudas/util
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

@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

目录

快速上手指南

数据类型工具

日期时间工具

数据赋值取值工具

数据深度合并工具

数据克隆工具

货币工具

地图工具

URL 地址处理工具

Readme

Keywords

Package Sidebar

Install

npm i @mudas/util

Weekly Downloads

0

Version

0.0.14

License

MIT

Unpacked Size

243 kB

Total Files

54

Last publish

Collaborators

  • mudas