@cyf-super/utils
v0.1.8
Published
个人工具库
Downloads
11
Readme
个人工具库
收集日常开发用到的工具函数
收集的工具函数
- Storage :封装localStorage、sessionStorage,支持设置过期时间、加密等
- is:数据类型的判断
- coverload:函数重载
- formatBytes:格式化文件大小
- openNewTag:打开新的tag标签页 详情见
- LruCache:LRU - 最近最少使用
- timeOut:定时器、延时器
- formatTime: 格式化时间
使用
安装npm:
npm i @cyf-super/utils
导出工具函数:
import { LStorage } from '@cyf-super/utils'
...