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

jiahe-crypt

v1.1.17

Published

### 方法名:setConfig <配置设置>

Readme

请求加密解密

方法名:setConfig <配置设置>

publicKeyStr:国密 2 公钥 <必填>

privateKeyStr:国密私钥 <必填>

isDebug:调试模式 <模式 false>

encryptType //算法类型 2-国密 4 SM4 加密,1-AES 加密,3-DES 加密

sm4SecretKey //对称加密秘钥

方法名:encrypt <公钥加密>

param:加密参数 <必填>

pubKey:公钥 <非必填>

方法名:decrypt <私钥解密>

data:接口返回的响应体 <必填>

priKey:私钥 <非必填>

方法名:setDebugHeader <调试模式 header 设置>

header:请求体 header

ignore: 接口白名单。在 setConfig 方法里面设置

方法名:setVueRequest <vue-axios 请求头设置>

req:请求头 <必填>

pubKey:公钥 <非必填>

方法名:setVueResponse <vue-axios 响应体设置>

res:响应体 <必填>

priKey:私钥 <非必填>

方法名:setMiniRequest <小程序请求设置>

option:小程序请求对象 <必填>

option.pubKey:公钥 <非必填 - 对象自定义属性>

option.priKey:私钥 <非必填 - 对象自定义属性>

v1.1.12 处理 webpack>5 包导入报 Uncaught ReferenceError: require is not defined

package 依赖库版本过高 type 为 module 导致

type 字段的产生用于定义 package.json 文件和该文件所在目录根目录中.js 文件和无拓展名文件的处理方式。值为'module'则当作 es 模块处理;值为'commonjs'则被当作 commonJs 模块处理。

目前 node 默认的是如果 pacakage.json 没有定义 type 字段,则按照 commonJs 规范处理。

node 官方建议包的开发者明确指定 package.json 中 type 字段的值。

无论 package.json 中的 type 字段为何值,.mjs 的文件都按照 es 模块来处理,.cjs 的文件都按照 commonJs 模块来处理。

v1.1.13 适配 webpack>5