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

mgljs

v1.0.1

Published

web by-Zhan Phty

Downloads

5

Readme

MglJS 说明

MglJS 是一款基于RequireJS模块化开发的前端组件;

MglJS 具有良好的兼容性,兼容IE8+、Chrome、Firefox、Safari、Opera等现代浏览器;

MglJS 整合jQuery、常规插件,只需按照规范引用组件,解决多人开发是使用插件不统一、臃肿等问题。

MglJS 组件是基于开源的第三方的组件,仅仅的进行模块化以及简单的修改。

解决问题

模块化不仅仅是提高效率问题,后期的维护也很方便。

一个项目的开发,毕定会使用到第三方插件或自己编写的插件。当多人同时参与一个项目是,每个人接到的任务都是不一样的,个人习惯的不同,就会造成同一个功能却使用了不一样的组件,冗余代码会很多。别人接手项目的时候也需要一定的成本去了解其中的代码。

模块化就很多的解决了这个问题,所有的前端人员去实现相同的功能时,他们只需要知道怎么添加功能所需的参数就行,无需去了解组件背后的代码。即使后续觉得组件无法再满足项目需求了,也只是修改组件,不影响前端人员的使用。

文档

查看文档 http://doc.uizph.com

安装说明

  • 将mgljs文件夹放入项目

  • 标签中引入js

引入

<html>
    <head>
        //style.css为可选。部分组件需要css,通过requirejs引用css会出现闪一下的情况。提前加载部分静态样式可解决。
        //此样式文件也只是部分样式,文件很小
        <link href="mgljs/css/mgl-style.css">   
        <script src="mgljs/app/util.js"></script>
        <script src="mgljs/require.js"></script>
        <script src="mgljs/config.js"></script>
    </head>
    <body>
    </body>
</html>