npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tools-min-ns

v1.15.0

Published

工具包适用于前端以及node

Downloads

26

Readme

use tools-min-ns

cnpm i tools-min-ns --save

updates

v1.14.4

ArrayUtil repeatArray 创建一个数组,其中包含原数组的元素,重复一定次数

v1.14.3

StringUtil getUuiD 重构随机ID效率更高

v1.14.2

DateUtil 日期格式化兼容优化

v1.14.1

DateUtil 日期格式化兼容YYYY-MM-DD

v1.14.0

ArrayUtil 新增三个分组方法

v1.13.0

RequestUtil

  • handleRequests 中onUploadProgress新增两个参数nowResponse: T; endResponses: T[]
  • 新增nsPromise 请求处理

v1.12.2

DateUtil.formatDate参数为string类型错误

v1.12.1

BrowserUtil还是window暴露问题

v1.12.0

CheckUtil 新增方法isValidFileName

v1.11.1

BrowserUtil 修复window暴露问题。

v1.10.3

ArrayUtil 新增universalSort

v1.10.3

TransferUtil getFileSizeByBytes修复参数n

v1.10.0

ExtractUtil 提取工具,文本中提取手机号、身份证

v1.9.12

RequestUtil mgopRequest 请求失败后端回调不显示

v1.9.11

uniRequest withCredentials参数默认false

v1.9.10

NumberUtil correctNumberInput错误bug修复

v1.9.9

DateUtil getDatesOfMonth日期错误bug修复

v1.9.8

PasswordUtil aes加解密使用URL编码和解码

v1.9.7

DateUtil 月份错误bug修复

v1.9.6

DateUtil getDateStart/getDateEnd修复

v1.9.5

优化代码

v1.9.4

UrlUtil 优化setUrlParamsNotRefresh在web,h5中的路由为hash的兼容性

v1.9.3

DateUtil 优化并新增isDateInYearAndMonth方法

UrlUtil 优化getUrlRequest在web,h5中的路由为hash的兼容性

v1.9.2

CheckUtil getFormItemRules required默认为false

v1.9.1

CheckUtil getFormItemRules 删除泛型和无用_validator参数

v1.9.0

CheckUtil getFormItemRules 新增required参数

v1.8.1

TreeUtil 修复getItemPathByTree

v1.8.0

TreeUtil 新增getItemPathByTree

v1.7.2

TreeUtil 修复getIdPathByTree

v1.7.1

DateUtil 新增getDatesOfMonth

v1.7.0

新增FileUtil

ObjectUtil 新增getHash

StringUtil 新增getHash

BrowserUtil 新增getIdSync

v1.6.0

CheckUtil 加入正数负数正则

v1.5.2

StringUtil getUuiD 修复参数

v1.5.1

DateUtil getDateDiff 修复

v1.5.0

BrowserUtil

  1. 新增 getId获取浏览器指纹
  2. 优化浏览器判断

新增CookieUtil cookie增删改查

新增EnvUtil 环境判断

新增RequestUtil 请求工具

v1.4.0

PasswordUtil

  1. 新增 str2MD5加密方法

SystemUtil

  1. 新增 copyText2Clipboard拷贝文本至剪切板方法

v1.3.4

BrowserUtil

  1. 修复 浙里办环境判断

v1.3.3

UrlUtil

  1. 修复 setUrlParamsNotRefresh方法

v1.3.2

  1. 修复url校验

v1.3.1

  1. 修复url正则
  2. 优化其他

v1.3.0

DateUtil

  1. 新增 formatDateToFriendly2 日期友好
  2. 新增 isCurrentWeek 判断是否本周

v1.2.0

ArrayUtil

  1. 新增 randomSortArr 随机排序数组

v1.1.0

TreeUtil

  1. 新增字符串分割树结构互转
  2. 修改树循环方法的形参

v1.0.0

初始化私服