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

@dgteam/helper

v0.4.4

Published

[计划] 目前的防抖、节流函数存在一定的缺陷,希望能允许通过 new 去创建一个新的函数,改函数不受函数名的限制

Downloads

33

Readme

[计划] 目前的防抖、节流函数存在一定的缺陷,希望能允许通过 new 去创建一个新的函数,改函数不受函数名的限制

0.4.3

[新增] package.json 中 index.d.ts 的导出
[调整] getProperty 方法在路径为空或 undefined 情况下,直接返回当前对象
[调整] extend 方法内部实现

0.4.2

[重要] 紧急修复 mjs 模块导出错误与兼容性问题

0.4.1

[新增] 恢复 url 解析库,但不建议使用
[优化] time 方法增加时区转换功能

0.4.0

[重要] 架构更换为 rollup 架构,同时支持 mjs 与 cjs,且文档结构有调整
[优化] 补充了部分 jsDoc
index.js
    取消默认导出 cache.js 的方法,有需要请单独导入
moment.js
    修复 time 方法毫秒格式错误
determine.js
    调整 isNaN 的判断方法
    新增了一些类型判断的支持
string.js
    新增 trim、snakeCase、camelCase 三个方法
math.js
    [重要] 原 uuid 更名为 guid
    新增了 uuid(v4) 函数
object.js 
    优化 originJSON 传参类型改为泛型,并提升部分类型的兼容性
    优化 enum 对 label value 字段的支持,由于 enum 是保留字因此更名为 enumString
    优化 getProperty 在 typeof null === 'object' 判断不严谨导致的错误,提升兼容性
lodash.js
    去除 lodash 模块,用其他替代方式代替

0.3.1

修复了一些错误的注释 在 determine 中增加 date、regexp 的判断方法 修复 math => price 方法 separate 字段没有效果的 bug、强化 unit 字段的用途 增加 math => priceUppercase 方法可取消 “整” 作为结尾的配置 增加 math => randomNumber、randomString、randomInt 三个方法 增加 lodash 模块的 debounce, throttle 方法 增加 test 自动测试代码

0.3.0

  • 把模块完全替换成 node 的 commonjs 规范,并在 node-win node-linux webpack vite uni 平台进行测试
  • 把 Extend 默认的 Object.assign 方法换成深拷贝的方法
  • 把所有大写方法换成小写
  • [重要] 暂时剔除 URL 对象

0.2.5

1.增加 base/Enum 方法 2.增加 url/UrlParse 方法 3.Time 方法支持 nodejs 默认的 UTC 时间格式

0.2.4

1.typescript 环境变更,去掉 webpack 层,导出 es6 模块 2.[BUG] 修复 math/Price 数值为复数时,separate 字段分割错误 3.time/Timestamp 支持传入字符串

0.2.2

1.[BUG] 修复 time/Time 在苹果平台 Safari 浏览器下的异常问题