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

ch-vendor

v1.0.8

Published

一些常用模块的封装和辅助函数

Downloads

18

Readme

ch-vendor

一些常用的模块封装和辅助函数。

Installation

$ npm install ch-vendor

Example

Always pretty by default:

const {sequelize, rabbitmq: RabbitMQ} = require('ch-vendor');
const Mysql = sequelize({
    host: '172.16.0.155',
    database: 'mine',
    username: 'me',
    password: 'ddddddd',
    max_connection: 20,
    min_connection: 1,
    logger: false
});

模块

  1. sequelize (最新校验过的依赖: "mysql2": "^2.1.0", "sequelize": "^5.21.6")
  2. commander (最新校验过的依赖: "commander": "^5.0.0")
  3. readline
  4. helper(包含: aes加解密, ed25519生成公私钥, 分页, querystring等)
  5. rabbitmq (最新校验过的依赖: "amqplib": "^0.5.5", "moment": "^2.24.0")

提示

  1. 本模块没有指定依赖, 使用者应自己 npm install --save
  2. 本模块内的配置和函数会不定期的去适配依赖模块的最新版本, 极少的情况下可能出现依赖的模块新版本与旧版本不兼容。 跟踪最新版本, 通常会带来性能和体验的优化, 但是也可能导致本地模块使用出错的情况, 所以正式环境上线前, 请确保 测试环境正常。为了比较好的避免这种糟糕的情况, 当出现不兼容的依赖版本时, 本ch-vendor模块将升级一个大的版本号, (eg: 1.5.8 -> 2.0.0), 以尽量保证使用者package.json中的模块能够配套。
  3. 使用中的任何问题和建议都可以提交issue或联系我, [email protected]
  4. 因为模块多是些简单实用的封装和函数集合, 所以没有提供详细的文档, 请npm install后查看源码, 确定合适再使用.

License

MIT