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

@mpxjs/mpxuse-shared

v1.0.2

Published

<p align="center"> <a href="https://github.com/mpx-ecology/mpxuse#gh-light-mode-only"> <img src="https://raw.githubusercontent.com/mpx-ecology/mpxuse/main/packages/public/logo-vertical.png#gh-light-mode-only" alt="Mpxuse - Mpx的composition-api的公用方法" widt

Downloads

7

Readme

🚀 功能

  • 🎪 文档和演示
  • 🕶 支持版本: mpx2.8版本以上
  • 完全tree shakeable: 仅打包所引用的, bundle size
  • 🦾 Type Strong: TypeScript编写, TS Docs
  • 🔩 灵活配置: 可配置的事件筛选器和目标

🦄 用法

import { useCounter } from '@mpxjs/mpxuse-core'

const { count, inc, dec, set, reset } = useCounter()
defineExpose({
  count, inc, dec, set, reset
})
<template>
  <view>
    <view>Count: {{ count }}</view>
    <button bindtap="inc">
      Increment
    </button>
    <button bindtap="dec">
      Decrement
    </button>
    <button bindtap="inc(5)">
      Increment (+5)
    </button>
    <button bindtap="dec(5)">
      Decrement (-5)
    </button>
    <button bindtap="set(100)">
      Set (100)
    </button>
    <button bindtap="reset">
      Reset
    </button>
  </view>
</template>

参考 所有函数 或者 文档 查看更多

📦 安装

🎩 mpx版本需要2.8以上才支持组合式Composition API!

npm i @mpxjs/mpxuse-core
Demos

可clone仓库执行

pnpm i
cd demo && pnpm i
npm run watch

🧱 贡献

参考 如何共建

🌸 感谢

这个项目的灵感来源于以下几个很棒的项目。

👨‍🚀 贡献者

pagnkelly

📄 License

MIT License © 2022 pagnkelly