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

gamu

v2.0.5

Published

gamu

Readme

GAMU

gamu 基于 Browsersync 和 gulp 开发, 集成了前端调试, 构建, 编译等开发流程, 帮助开发者提高开发效率;

##命令步骤

  1. npm i gamu -g // 全局安装依赖

  2. gm init / gam init // 项目初始化, 安装依赖

  3. gm dev / gam dev // 运行项目

  4. gm build / gam build // 打包静态文件

##目录结构描述


├── app                         // 入口文件夹
│   ├── css                     // 样式文件夹
│   │    └── vendor
│   ├── font                    // 字体文件夹
│   ├── images                  // 图片文件夹
│   ├── js                      // 脚本文件夹
│   │    └── vendor
│   ├── media                   // 多媒体文件夹
│   └── template                // 模板文件夹
│
├── config.js                   // 自定义配置文件
│
├── gulpfile.js
│
└── README.md                   // help

##注意事项说明

  1. 执行 gm init / gm i 命令时, 如果没有 app 文件夹,则会默认创建

  2. config.js 为编译配置文件

  3. css, js 文件夹下的 vendor 文件夹 build 时不会进行处理, 建议将外来引用的 css, js 放入 vendor , 如引入的 jQuery 源文件, 放到对应 js/vendor 下;

  4. 关于样式的打包问题: 执行打包时, 样式文件将进行合并为一个命名为 main.css 的文件, less, sass 将会编译后进行合并, 所以开发时, 直接外链引入 main.css 即可

  <link rel="stylesheet" type="text/css" href="css/main.css">
  1. template 文件夹为模板文件夹, 可将页面的 header, footer 放到此处, 打包时将会忽略此文件夹

  2. 模板引入的命令为

  // 基本命令行
  @@include("./template/head.html")

  // 带参命令行
  @@include("./template/head.html", {
  		"page": "index"
  })

根据携带参数添加 class


  // index.html
  @@include("./template/head.html", {
  		"page": "index"
  })

  // 模板文件 head.html
  <div class="menu @@page">
  ...
  </div>

  <div class="menu @@if (page === 'index') {active}">
  ...
  </div>

编译后


  // 模板文件 head.html
  <div class="menu index">
  ...
  </div>

  <div class="menu active">
  ...
  </div>

更多详情可参考 gulp-file-include 介绍

注意!注意!注意!

参数必须用双引号包裹, 否则报错

正确写法

"page": "index"

错误写法

'page': 'index'

page: index

(待补充...)