All Projects → alitajs → autils

alitajs / autils

Licence: other
Awesome frontend utils library

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to autils

utils
⚡ A collection of common functions but with better performance, less allocations and less dependencies created for Fiber.
Stars: ✭ 21 (+23.53%)
Mutual labels:  utils
OrganizeMediaFiles
a collection of Python scripts that help you organize media files into a directory tree "year/month" based on metadata , using exiftool
Stars: ✭ 24 (+41.18%)
Mutual labels:  utils
permissionUtil
Simple permission helper
Stars: ✭ 64 (+276.47%)
Mutual labels:  utils
jh-weapp-demo
微信小程序项目- 实现一些常用效果、封装通用组件和工具类
Stars: ✭ 60 (+252.94%)
Mutual labels:  utils
changelog-linker
[READ-ONLY] Make CHANGELOG.md Useful with Links
Stars: ✭ 81 (+376.47%)
Mutual labels:  utils
sweekt
🍭 Some sugar to sweeten Kotlin development.
Stars: ✭ 35 (+105.88%)
Mutual labels:  utils
vue-functional-data-merge
Vue.js util for intelligently merging data passed to functional components.
Stars: ✭ 100 (+488.24%)
Mutual labels:  utils
py-eth-sig-utils
Collection of python functions to generate hashes for signing on Ethereum
Stars: ✭ 18 (+5.88%)
Mutual labels:  utils
table2ascii
Python library for converting lists to fancy ASCII tables for displaying in the terminal and on Discord
Stars: ✭ 31 (+82.35%)
Mutual labels:  utils
agon
🦉 my golang utilities, log json config and other
Stars: ✭ 12 (-29.41%)
Mutual labels:  utils
umi-plugins
Umi Plugins
Stars: ✭ 14 (-17.65%)
Mutual labels:  alita
lobase
Port of the OpenBSD userland to Linux.
Stars: ✭ 89 (+423.53%)
Mutual labels:  utils
util
封装了一些Java常用的功能
Stars: ✭ 19 (+11.76%)
Mutual labels:  utils
spotify-tensorflow
Provides Spotify-specific TensorFlow helpers
Stars: ✭ 118 (+594.12%)
Mutual labels:  utils
dd
This package will add the dd and dump helpers to your Phalcon application.
Stars: ✭ 17 (+0%)
Mutual labels:  utils
HttpUrlConnectionUtilDemo
写小demo的时候,用Android成熟的网络框架有些大炮打蚊子,所以用最简单的方式写了一个网络工具类,注意,这个只是工具类...
Stars: ✭ 31 (+82.35%)
Mutual labels:  utils
packetevents
PacketEvents is a powerful packet library. Our packet wrappers are efficient and easy to use. We support many protocol versions. (1.8+)
Stars: ✭ 235 (+1282.35%)
Mutual labels:  utils
csa-misc-utils
Miscellaneous samples, documents, how-tos, utilities, scripts, and other CSA tidbits
Stars: ✭ 79 (+364.71%)
Mutual labels:  utils
Y-BP
YFE Team 前端最佳实践
Stars: ✭ 28 (+64.71%)
Mutual labels:  utils
java-sdk
一些常用的java sdk和工具类(日期工具类,分布式锁,redis缓存,二叉树,反射工具类,线程池,对称/非对称/分段加解密,json序列化,http工具,雪花算法,字符串相似度,集合操作工具,xml解析,重试Retry工具类,Jvm监控等)
Stars: ✭ 26 (+52.94%)
Mutual labels:  utils

autils

Alita NPM version NPM downloads

小巧实用的前端工具类库。

特性

  • ✏️ 使用TypeScript编写,类型友好
  • 源于日常项目的积累,更实用
  • 🐳 使用Jest进行严格测试,更稳定
  • ⚡️ 支持按需加载,请配合babel-plugin-import使用

📦 安装

  • npm安装
npm install @alitajs/autils --save
  • yarn 安装(推荐)
yarn add @alitajs/autils

📝 目录

工具类

  • ArabicChinese 阿拉伯数字和中文数字互转
  • NumberPrecision 解决浮动运算问题,避免小数点后产生多数值和计算精度损失
  • Policy 解析权限策略,并提供验证功能

工具函数

  • arrayToObject 转换数组为对象
  • arrayToTree 将数组转换为树形结构数据
  • dedent 每一行紧跟前导空白的插入值,为多行时,保持缩进。并移除每一行的公共前导空白。
  • deepClone 深拷贝
  • delay 休眠函数
  • forOwn 遍历对象的可枚举属性。若遍历函数返回 false,遍历会提前退出。
  • getType 检测 value 的类型
  • groupBy 根据迭代函数返回的值对 data 进行分组。
  • immediate 推迟执行
  • indent 每一行紧跟前导空白的插入值为多行时,保持缩进。
  • isArray 检查 value 是否是一个数组
  • isBoolean 检查 value 是否是一个布尔值。
  • isDate 检查 value 是否是一个日期
  • isEmail 检查value是否为邮箱。
  • isEmptyObject 检查 obj 是否是一个空对象
  • isFunction 检查 value 是否是一个函数
  • isIdCard 检查 value 是否是一个身份证号
  • isInteger 检查 value 是否是一个整数。
  • isNaN 检查 value 是否是 NaN
  • isNegativeInteger 检查 value 是否是一个负整数
  • isNil 检查 value 是否是 nullundefined
  • isNull 检查 value 是否是 null
  • isNumber 检查 value 是否是一个数字。
  • isObject 检查 value 是否是一个对象
  • isPhone 检查value是否为手机号。
  • isPromise 检查value是否为Promise
  • isRegExp 检查 value 是否是一个正则对象。
  • isString 检查 value 是否是一个字符串
  • isSymbol 检查 value 是否是原始 Symbol 或者对象。
  • isUndefined 检查 value 是否等于 undefined
  • isUrl 检查 value 是否是一个Url
  • urlToList 转换url为数组

工具类型

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].