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

generator-module-imweb

v0.0.4

Published

A module generator for Yeoman

Readme

Module Generator

Create a module with Yeoman, including grunt-jsdoc and bower.json for publish

安装

如果没安装yo:npm install -g yo

npm install -g generator-module-imweb

新建模块

  1. mkdir <package-name>
  2. cd <package-name>
  3. yo module-imweb

开发

目录说明:

  • dist: 压缩合并后的文件
  • doc : 静态文档页面所在目录, index.html 是入口
  • src : 源文件所在目录
  • gruntfile.js : grunt配置文件
  • package.json : 开发时包的信息跟依赖
  • README.md: 模块说明文档,生成静态文档页面时会作为 index.html
  • bower.json: 发布时,作为bower包的信息

组件开发:

  1. 修改组件说明文档 README.md
  2. 将组件代码放到 src 文件夹,使用 jsdoc3 规则对模块进行注释
  3. 命令说明:
    • grunt doc: 自动分析 src 中代码的注释跟 README.md, 在文件夹 doc 中生成html文档
    • grunt dev: 将 src 中的js代码压缩到 dist
    • grunt clean: 清空 docdist 文件夹
    • grunt build: 同时运行 grunt docgrunt dev, 用于最后发布组件

发布

  1. 在github上新建对应的远程仓库
  2. 添加本地代码,打上版本tag(bower发布需要git仓库上的项目有版本tag)
  3. 将代码和tag上传到远程仓库
  4. 输入 bower register <module-name> <repository-url>

License

MIT License