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

leniu-cli

v0.0.17

Published

乐牛前端命令行工具

Readme

乐牛前端命令行工具

安装

// 安装对应的包, bun用于执行ts文件
npm add -D leniu-cli && npm add -g bun

// 确保svn的命令行可以用(如果还没装命令行,并且已经安装了TortoiseSVN,尝试重新安装TortoiseSVN,记得勾选上安装命令行的配置)
svn help

配置

//配置项目信息:项目目录新建ln.config.ts或者ln.config.js
export default {
  // 构建路径
  buildPath: "dist",
  svn: {
    repository: "svn://192.168.2.227/ln_mk/public/front",
    // 不输出日志
    silent: true,
  },
  ftp: {
    host: "192.168.2.227",
    port: 4902,
    username: "laiweijie",
    password: "lnlwj123",
    // 推送的路径
    path: "/home/laiweijie/pre-mk/public/front",
  },
  branch: {
    // svnList的分支会推送到svn,其他的会推送到ftp
    svnList: ["master","master-pre"],
  },
};
//配置本地信息:项目目录新建ln.config.local.ts或者ln.config.local.js(不要有中文路径)
export default {
  svn: {
    username: "zhenghangfeng",
    password: "lnsg19feng",
    cwd: "C:\\Users\\Administrator\\Desktop\\ln\\mk_online",
  },
}
//如果还没配置gitignore 需要配置一下
ln.config.local.*

推送到FTP/SVN

  1. 命令: ln deploy -m 提交信息 -t svn|ftp

  2. 根据分支推送:根据当前分支,自动推送到ftp或者svn a.当前分支不包含在branch.svnList里,推送到ftp b.当前分支包含在branch.svnList里,推送到svn

  3. 例子:

  // package.json
  "scripts": {
    "build": "vite build",
    "buildWithDeploy": "npm build && ln deploy",
    "deploy": "ln deploy",
  }
  
  // 构建完根据分支自动推送
  npm run buildWithDeploy -- -m 我是SVN的提交信息,推送到FTP不用传参
  pnpm run buildWithDeploy -m 我是SVN的提交信息,推送到FTP不用传参
  // 智投项目例子
  npm run buildWithDeploy ln_material -- -m 我是SVN的提交信息,推送到FTP不用传参
  // 只推送
  npm run deploy -- -m 我是SVN的提交信息,推送到FTP不用传参
  pnpm run deploy -m 我是SVN的提交信息,推送到FTP不用传参
  // 只推送到ftp
  npm run deploy -- -t ftp
  pnpm run deploy -t ftp
  // 只推送到svn
  npm run deploy -- -t svn -m 我是SVN的提交信息,推送到FTP不用传参
  pnpm run deploy -t svn -m 我是SVN的提交信息,推送到FTP不用传参

推送

创建项目

  1. 命令:ln create 项目名
  2. 通过npx执行:npx leniu-cli create test-project
  3. 执行目录:在需要创建项目的目录下执行命令
  4. 例子:
// 去到创建项目的目录打开终端,并执行以下命令
npx leniu-cli create test-project

创建项目