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

ysxs-fe-tools

v1.2.0

Published

元声象素前端公用方法库

Downloads

7

Readme

元声象素前端公用方法库

未来将涵盖 GiS、PC、小程序/H5

维护步骤

  1. src 目录下,新建 xx.js,作为编写新方法代码的载体文件,使用驼峰命名;
  2. 编写完后新建该方法测试文件。test 目录下,遵守 xx.test.js 的命名规范,并参考已有示例编写测试代码;
  3. 自测方法是否正确,终端输入 npm run test 命令,如只想单独测试某一个文件则执行 jest -t xx.test.js;
  4. 测试无误后发布,package.json 中修改版本号,执行 npm publish;
  5. npm 账号信息:用户名:ysxs-tools,密码:YczTGEykrMDMNbywaHs4QoTDCRA=
  6. 邮箱信息:账号:[email protected],密码:ysxsTools123456

引用

import { typeOf, passArray } from "ysxs-fe-tools";

console.log(typeOf(123), passArray([])); // Number、true

文档查看

  1. 生成最新文档只需在终端执行 npm run docs;
  2. 执行完此命令后,即生成最新的文档目录-docs;
  3. 查看。项目中找到 docs 目录下的 index.html,在浏览器运行即可查看;
  4. 文档编写规范/方法参考 jsdoc 官方文档 https://www.shouce.ren/api/view/a/13232,或参考示例文件 typeOf.js 中的注释部分;