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

mo-web-components

v4.0.33

Published

### 1:全部自研。

Readme

一:组件库实现的三种方式:

1:全部自研。

2:将开源组件库下载到本地,直接调整源码。

3:将开源组件库作为node_modules依赖包进行二次开发。本组件库使用此方式。

image.png

二:摩捷组件库优点:

1:下载方式

组件库部署在公共平台上,项目通过npm直接下载,当组件库调整或扩展时,项目通过命令行可直接安装,不需要在项目中调整代码。

image.png

2:代码的各个部分都已按照个人能想到的最好的方式进行设计实现,如扩展性、易用性、可维护性等等。

     扩展性如:Page组件的操作区,虽然都是按钮,可直接使用数组来控制,但考虑到后期可能会对按钮进行统一控制,如对齐方式等情况。最后使用对象,将数组作为items属性。无论组件如何扩展,整体结构不变,不会出现不合理或需要调整结构的情况。

image.png

     易用性如:针对回调,分为同步和异步的情况,异步函数均以Async结尾,方便开发人员快速识别,不符合条件的情况会抛出异常,方便后续扩展。

image.png

     可维护性:关于开源组件库中组件的配置项,均以常量的方式进行配置,增减时代码会自动识别,方便维护。

image.png

3:组件库中的组件均可根据公司风格、业务进行封装,方便业务人员使用。

4:内部组件库已在出行管理平台的项目中进行了使用,完全按照预期进行展示。