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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ums-toolkit

v1.0.5

Published

银联商务小程序toolkit

Downloads

8

Readme

UMS-Toolkit

银联商务小程序命令行工具,用于生成小程序工程模板,开发者仅需要在工程模板内添加代码逻辑,即可快速开发出自己的小程序。

环境准备

安装Node环境

进入NodeJS官方网站下载最新稳定版Node.

查看自己的node版本:

node -v

npm -v

安装cnpm

npm install cnpm -g

通过cnpm安装ums-toolkit

cnpm install -g ums-toolkit

使用选项

  Usage: ums <command> [options]

  Options:

    -V, --version             output the version number
    -v, --version             display version
    --port [port]             http listening port number ,default is 8081 (default: 8081)
    -e, --entry [entry]       the entry file in a folder
    -h, --help                output usage information

  Commands:

    init|i [projectName]      genenrate a new project from template
    add [options]             Help you install dependency from npm
    debug|d [options] [file]  start debugger                                             

创建项目

$ ums init your_project_name

运行成功后的目录结构如下:

project-template
│  .babelrc                // 支持ES6语法的配置文件,删除后无法使用ES6
│  .eslintrc               // ESLint 配置文件
│  app.js                  // 不需要修改。Debug时的入口文件
│  config.json             // 小程序项目配置文件,在此文件中添加应用信息
│  favicon.png             // 小程序在应用市场上显示的图标
│  index.html              // 不需要修改。在浏览器上打开小程序应用的首页,
│  package.json            // npm的配置文件,包含小程序开发所用依赖配置
│  README.md               // 项目README文件
│  weex.html               // 不需要修改。浏览器预览页面
│  
├─assets                   // 不需要修改。为Debug页面资源文件
│      phantom-limb.js
│      qrcode.js
│      qrcode.min.js
│      style.css
│      url.js
│      
├─build                     // webpack配置文件,一般不需要修改
│      webpack.base.conf.js
│      webpack.dev.conf.js
│      webpack.prod.conf.js
│      
└─src                       // 项目开发的源文件目录
        index.vue
        logo.png

安装项目依赖

进入目录,运行

cnpm install

调试项目

ums debug youfile.vue

项目编译

npm run build

打包

npm run pack