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 🙏

© 2026 – Pkg Stats / Ryan Hefner

alml

v0.0.16

Published

javascript model 合集

Readme

All model

JavaScript 逻辑代码封装库

model列表

domArea 当前dom 是否在可视区域 0.0.4

search 数组a 中所有的数据是否在数组 b中都存在 0.0.4

search1 search的升级版

ArrDelete 删除数组a 中 值为b 的数组值 并返回删除后的数组 0.0.4

Collocate 并归排序 0.0.4

sort 插入排序 0.0.4

arrayMonitor 数组监听 0.0.14

arrayFlatten 层级数组 children 展开为一层 0.0.15

getBlobBydataURI 将数据转化为文件 0.0.4

dateWeek 某周的开始结束日期 0.0.4

dateMonth 某月的开始结束日期 0.0.4

equipmentJudgment 获取当前设备 是pc 或 移动 端 0.0.4

getObjectURL 选中文件 生成链接地址 0.0.4

http XML HTTP 请求 0.0.4

recursion json 深度 get set 监听 0.0.4

sketchpad 简易画布涂鸦功能 0.0.4

swipingBottom 页面到达底部 (触发刷新) 0.0.4

pictureCompression 图片压缩 0.0.4

queue 队列 0.0.8

queue_basis 基本队列-应用层面 0.0.8

ceshi1 圆形展开动画 0.0.14

download 文件下载 -- 0.0.13

phone_number 中国大陆手机号正则 0.0.12

text_length 文本长度是否符合 0.0.12

CHN_number_plate 中国大陆机动车车牌正则校验 0.0.12

text_number 文本是否都是数字正则校验 0.0.12

validate_blank 空格校验不能包含空格 0.0.14

vin_check vin码正则校验 0.0.14

null_change null || '' 转换为 -- 0.0.13

commaSeparated 数字千分位‘ , ’间隔 0.0.4

formatFunK 数值单位转换 K千 M百万 0.0.13

percentage 转百分比 0.0.13

percentage2 转百分比 不加%号 0.0.14

recording 录音 0.0.14

API