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

hand-hls

v3.0.0

Published

a simple command line tool to generate svc and bm files

Readme

hand-hls

Installation:

npm install hand-hls -g

使用:

  • hls new [name]:在当前目录下生成svc,并在对应目录生成bm
  • hls sql [name] 根据当前目录svc名在控制台打印功能脚本
  • hls conf 根据配置文件生成对应的svc和bm

支持的命令:

hls new

hls new [name] -s [name]仅生成svc

hls new [name] -b [name...]仅生成bm,支持一个svc对应多个bm,此时bm名称应以逗号隔开

hls new [name] -l 生成适用于leaf的lsc

hls new [name] -f [field...]*[field...] 在生成svc和bm时注入需要的字段,字段之间以逗号隔开。生成多个bm时,每个bm对应的字段应以星号隔开,且字段列表数据必须与bm数目保持一致

注:以上命令选项可叠加使用

hls sql

hls sql [name] 生成功能脚本文件

hls conf

根据当前文件下的hls.conf.js生成对应的svc和bm

配置文件格式

module.exports={
    name:string,//svc的名称
    target:'leaf'|'aurora',//是否为leaf框架
    bms:[{
        name:string,//bm的名称
        params:Array<string>,//传递的参数
        fields:[{
            name:string,//字段名
            dataType:string,//数据库类型
            javaType:string,//java类型
            physicalName:string//字段在数据中的名称
        }]//字段列表,可为字符串或对象,为字符串时最终会被替换为对象,其name值与此字符串相等,其它为空
    }]//bm配置列表,数组中每个元素会生成对应的bm
}