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

@yuanjili/js-es-c

v1.5.6

Published

js工具包

Readme

常用 js 工具集合

提供常用的js 方法的使用
涉及到 对象、数组、字符串、map、时间、正则等等

'使用文档说明'

npm 上的包

npm install @yuanjili/js-es-c

yarn add @yuanjili/js-es-c

yarn upgrade @yuanjili/js-es-c@latest

更新

yarn upgrade @yuanjili/js-es-c --latest yarn upgrade --latest

npm install <package_name>@latest

Version

1.0.0

  • Initial release

1.4.4

  • 新增 table.js
  • paginationMethod 分页的方法,

"version": "1.4.7",

  • 添加了 vconsole.js 文件内容,支持动态进行加载 VConsole
  • setupVConsoleTrigger,通过监听组件短期内点击,加载 VConsole

"version": "1.4.8",

  • 优化,打包之后的文件增加压缩,减少体积

"version": "1.4.9",

  • common.js 增加了 downloadFileWithFetch,主要是解决后端定义了文件名称,前端无法修改,所以增加了这个方 法
  • downloadByUrl,这个方法修改 setFun 支持外部传入函数,可以修改 link

"version": "1.5.0",

  • 新增了 createListHandler、ListHandler 方法,

"version": "1.5.1",

  • 新增了 ListHandler 里面的添加方法

"version": "1.5.3",

  • 解决 regeneratorRuntime is not defined 的问题

"version": "1.5.4",

  • 安装 regenerator-runtime --save-dev 解决 regeneratorRuntime is not defined 的问题

"version": "1.5.5"

  • appendScript 添加 options 额外 script 属性,如 { async: true, defer: true, crossorigin: 'anonymous' }
  • 如果未设置 async 或 defer,脚本默认是同步加载和执行的,会阻塞后续 DOM 解析,直到脚本加载完成或失败(超时)。
  • 如果设置了 async 或 defer,则不会阻塞 DOM 解析,脚本加载失败也不会影响页面结构,只是脚本不会执行。
  • 对于非核心脚本,建议加上 async 或 defer。

"version": "1.5.6"

  • 新增了 arrFun 新增 arrHasObject、arrHasObjectWithKey,方法
  • 去掉测试代码
  • table.js 的 ListHandler 添加了 sort 方法