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

mp-pixel

v0.0.13

Published

小程序视觉还原检查组件

Downloads

21

Readme

mp-pixel

一个简单好用的小程序视觉还原辅助组件

安装 Installation

1、在微信小程序项目根目录中引入组件 NPM 包

npm install mp-pixel

2、微信开发者工具 --> 项目设置 --> 勾选“使用 npm 模块”

图示

3、微信开发者工具 --> 工具 --> 构建 npm

图示

4、在单独页面的 json 中引入(目前微信开发者工具不支持在 app.json 中全局引用定义组件,但不支持真机预览)

// page/index/index.json
{
    "usingComponents": {
        "pixel": "mp-pixel"
    }
}

5、在页面 wxml 中插入组件

<!-- pages/index/index.wxml -->
<pixel></pixel>

使用 Using

1、顶部:展开收起菜单 | 是否可见 | 是否锁定图层 | 是否图层反色

2、菜单:图层 x 点设置 | 图层 y 点设置 | 图层透明度

3、图片:新增图片 | 删除图片 | 选择图片

4、拖拽:图层非锁定状态下拖拽 | 菜单区拖拽

图示

官方文档 official docs

官方 npm 支持文档

常见问题 FAQ

Q1: 无法构建 npm, 报”没有找到 node_modules 目录"(旧版)或者“没有找到可以构建的 NPM 包”(新版)。

图示 图示

A1: 项目中缺少 package.json 文件,可以使用 npm init 新建一个 package.json 文件,之后再进行构建即可。

Q2: 微信小程序真机扫描二维码预览时页面空白,但真机调试时页面正常

A2: 目前微信开发者工具不支持在 app.json 中全局引用定义组件,但不支持真机预览。也就是说若只在开发者工具中使用,可以在全局引入组件,方便快捷,但是若需要真机预览,则需取消全局引入,在需要的页面中分别引入。