@es-tool/core
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

简介

javascripttypescript 语言的简单工具包, 对标准库的补充

安装

npm i @es-tool/core

API

工具类

工具类 作用
ArrayTool.ts 数组判空, 去重, 转映射, 分组, 求和 等
Assert.ts 断言工具
FileTool.ts 简单 File 处理
JsonTool.ts JSON 封装
NumberTool.ts 数字大小限制, 展示, 转范围等
ObjectTool.ts 对象判空, 遍历, 转数组, 属性过滤等
RandomTool.ts 随机数生成
TreeTool.ts 树形结构处理: 生成树, 遍历树, 转换树, 过滤树, 树路径, 树深度等

通用模型

类型 作用
BaseObject.ts Object 扩展: equals
KeyValue.ts 键值对映射
LoopSupply.ts 循环迭代器
StorageItem.ts Storage
TreeNode.ts 抽象父节点

装饰器

名称 作用
Throttling 节流
Debounce 防抖

常量 单位

类名 作用
StorageUnit.ts 存储单位
TimeUnit.ts 时间单位
StringConstant.ts 字符串常量, StrTool 已经包含了

仓库

https://gitee.com/syrm/es-tool

Readme

Keywords

Package Sidebar

Install

npm i @es-tool/core

Weekly Downloads

1

Version

1.0.6

License

Apache License 2.0

Unpacked Size

424 kB

Total Files

234

Last publish

Collaborators

  • songyanrumo