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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dt-frames/core

v3.0.2

Published

[文档地址](http://dt-web.gitee.io/docs/)

Downloads

140

Readme

核心库

文档地址

包含常用的钩子函数、服务管理、工具集、以及系统默认配置,主要包含以下内容:

hooks

  • [x] 添加事件监听: on、off
  • [x] 浏览器resize事件
  • [x] useApp: 获取语言、编译环境
  • [x] useI18n: 国际化
  • [x] useMessage: 消息处理
  • [x] useSlot: 截取插槽、拷贝插槽
  • [x] useTimeoutFn、useTimeoutRef: 延迟执行

服务

  • [x] DtCache: 缓存相关设置
  • [x] dict: 字典及structure常用方法,通过code获取列表、通过url获取列表,根据id获取值等
  • [x] http: http请求
  • [x] router: 路由处理

数据仓库

  • [x] useAppStore: 存储配置、语言、路由等信息
  • [x] useRouterStore: 存储全量路由及路由对象

工具集

  • [x] copyText: 拷贝文字
  • [x] formatNumber: 数字转千分位
  • [x] getParentSlots: 递归获取插槽
  • [x] is函数: 是否为函数、是否为字符串等判断
  • [x] js函数: 深拷贝
  • [x] window函数: 打开弹框openWindow

后续功能会持续更新...