0.1.3 • Published 1 year ago

@anlib/utils v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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.3

1 year ago

0.1.2

1 year ago

0.0.3

1 year ago

0.1.1

1 year ago

0.0.2

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.1

2 years ago

0.1.0

2 years ago