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

missyt-utils

v0.1.4

Published

Common method tool library of javascript

Readme

missyt-utils是什么?

请参考开发文档

国内Gitee

missyt-utils是一个作者自认为常用js代码工具库,一个高级前端工程师不屑写的工具库,不管别人怎么看,但至少方便了自己。

missyt-utils 目前仍在 开发中 状态. 它已经构建好了开箱即用的api,未来可能会对函数内部实现进行优化,已实现的方法(包括方法名、入参、出参)不会变动,请放心使用。

动机

在日常开发中,经常会封装一些与业务不相关的工具方法,例如:关于数据类型、dom、bom、http请求、浏览器存储、事件等方法。而我们伟大的lodash真的是又大又粗!所以一些小而美的方法,每次使用前要么自己重写,要么从哪儿复制粘贴至项目中,我是一个连百度都嫌麻烦的人,所以就出现了missyt-utils,只为做三件事:收集、重写、复用

提升

至少让自己多了点思考,少了频繁的百度和到处的cv,汲取一些优秀开源的思路和写法。

issue

如在使用过程中出现问题,欢迎提issue尽情嘲讽,只为共同进步、相互学习。


快速上手

安装

  npm install missyt-utils

引入

import * as mUtils from 'missyt-utils';

import { isBrowser } from 'missyt-utils';

const mUtils = require('missyt-utils');

邀请共同维护

想办法减少重复的劳动才是提升效率的关键,我们可能要花更多的心思在设计模式和细节优化上。但很显然,对于一些很常用的方法,我们经常做的就是一遍遍的搜索,到处搬运,然后复制粘贴,看起来很忙,但这真的是无效的努力。 所以,邀请各位朋友一起维护,大家常用的或者觉得小而美的方法可以相互分享,一次搞定,做到开箱即用。欢迎fork and merge!!

第一步:注册路由

按照我们约定的类目在docs/.vitepress/theme/config.ts文件中sidebarGuide下创建一级菜单(如果已存在则直接跳过) 然后关联所维护的文档文件,即可开始编写文档

{
  text: '本地存储', // 一级目录路由
  items: [
    { text: 'Storage操作', link: '/guide/Storage' }, //二级目录路由
    { text: 'Cookie操作', link: '/guide/Cookie' },
  ]
}

第二步:编写规范

我们为了减少维护成本,约束代码规范,采用驼峰命名,函数需注释清楚:用途描述、入参、出参、特殊注意点备注、使用样例等

// 这是一个完整规范
## observeProxy   //标题
设计一个对象的观测者-proxy方案  //注释
/**
 * @func observeProxy
 * @desc 设计一个对象的观测者-proxy方案
 * @param { Object } obj 对象
 * @return { cal } 观测对象回调方法
 * @github git链接
 * @example  let obj = observeProxy({name:'alex',age:18},callback)
 * @size 插件大小
*/

第三步:运行检查

运行文档,检查错别字等问题

yarn docs:dev