@mudas/util

A tools library of null、boolean、number、string、datetime、object、array、function、url、currency、map
1,599
Install
npm install @mudas/util
Latest Version:0.0.14
Vue:2
License:MIT
Last Updated:Jun 24, 2021
Links: GitHub  ·  npm
Maintainer: mudas

@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 地址处理工具

Related Packages

@vue/apollo-util

Apollo GraphQL for Vue - Utilities

660,241 6,025
@wmde/vuex-helpers

Helper functions to ease working with Vuex, Centralized State Management for Vue...

8,736 4
vue-v

Render Vue vNodes from the template

4,373 7
vuex-action

Utilities for vuex to create actions.

1,989 26

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