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

v3hooks

v1.5.0

Published

针对 Vue3 的实用Hooks集合

Downloads

40

Readme

🔨安装

🏃文档

⚡使用

  • Async
    • useRequest — 一个完整的管理异步数据请求的Hook,aHook useRequest的Vue3实现,Api完全一致,如果你使用过aHook这将无缝衔接到Vue3.
  • Side
    • useDebounce — 用于处理防抖值的 Hook.
    • useDebounceFn — 用于处理防抖函数的 Hook.
    • useThrottle — 用于处理节流值的 Hook.
    • useThrottleFn — 用于处理节流函数的 Hook.
    • useInterval — 用于处理interval的 Hook.
    • useTimeout — 用于处理timeout的 Hook.
  • State
    • useToggle — 用于在两个状态值间切换的 Hook.
    • useBoolean — 优雅的管理 boolean 值的 Hook.
    • useDate — 用于处理时间格式化 Hook.
    • useLocalStorage — 简单高效管理localStorage的 Hook.
    • useSessionStorage — 简单高效管理SessionStorage的 Hook.
    • useCookie — 用于管理本地Cookie Hook.
    • useNetwork — 用于获取网络状态 Hook.
    • useSet — 用于管理Set的 Hook.
    • useMap — 用于管理Map的 Hook.
    • useWebSocket — 用于处理 WebSocket 的 Hook。
  • UI
    • useVirtualList — 用于长列表虚拟化列表的 Hook.
    • useDynamicList — 用于管理列表状态 Hook.
    • useMediaQuery — 用于监听 mediaQuery 状态的 Hook。
    • useExternal — 用于加载异步资源的 Hook.
    • useFullscreen — 一个用于处理 dom 全屏的 Hook.
    • useDocumentVisibility — 可以获取页面可见状态的 Hook.
    • useTextSelection — 实时获取用户当前选取的文本内容及位置Hook.
    • useQRCode — 用来生成二维码的Hook.
  • Advanced
    • useLockFn — 用于增加异步函数增加竞态锁,防并发 Hook.

常见问题

常见问题请见 文档

🤝 感谢

如果这个项目对您有帮助,欢迎Star