0.1.4 • Published 11 months ago

@anlib/utils v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

an 的常用函数库

  • buildDate: 构建日期
  • version: 构建版本
  • camelize: 驼峰命名转换
  • capitalize: 首字母大写
  • snakeCase: 蛇形命名转换
  • dislodgeDouble: 去除JSON数据的key的双引号
  • sleep: 在async环境下的休眠函数
  • debounce: 防抖
  • throttle: 节流
  • cached: 缓存纯函数
  • compose: 组合函数
  • getType: 通用判断类型
  • getDate: 获取日期
  • getDirname: 获取__dirname
  • getFilename: 获取__filename
  • fileReaderFile: 文件读取
  • execShell: 执行shell命令
  • genExcel: 生成excel
  • parseExcelToJson: 解析excel文件或excel文件地址为json
  • writeFile: 文件写入
// commonjs
const utils = require("@anlib/utils");

// esmodule
import * as utils from "@anlib/utils";

// browser umd
import "@anlib/utils/lib/bundle.browser.js";
console.log(anUtils);
0.1.4

11 months ago

0.1.3

2 years ago

0.1.2

2 years ago

0.0.3

2 years ago

0.1.1

2 years ago

0.0.2

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.1

3 years ago

0.1.0

3 years ago