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 🙏

© 2024 – Pkg Stats / Ryan Hefner

lz-cmd

v3.0.4

Published

lz命令工具

Downloads

2

Readme

模板拉取/复制工具-组件复用

功能介绍

快速拷贝模板/组件资源到当前项目路径下(避免重复造轮子)


说明

  远程模板库---默认npm全局路径下node_modules的链接资源
  模板名字--- package.json 包配置中的名字(没有会以文件夹名自动创建)
  目录名---包内具有独立功能的组件/资源/模块/预制体的名字的文件夹
  功能---npm全局路径下node_modules的链接资源快速复制到本地,模板代码更新 则本地项目中的模板会级联更新
  注---所有资源以文件夹(目录)为最小单位(单独的文件不会显示)

命令

*******************************************************************************************************************
🍭  -h 帮助
🍭  -v 版本号
🍭  list  [模板名字,...]    查看本地模板库/目录列表
🍭  list  [模板名字,...] -r 查看远程模板库列表
🍭  put   上传模板到远程库
🍭  unput 从远程模板库卸载该模板
🍭  pull  [模板名字,...]    拉取远程模板到本地项目
🍭  copy  [模板/目录名字,...] -[模板名字]   拷贝本地模板/目录到本地项目
🍭  clear [模板名字,...]    删除本地项目的模板

用法

例如 1.创建一个名为 Vue-components 组件库项目的模板文件 目录下有 src\components\Tinymce 富文本组件 2.在创建一个 test 的本地项目文件 以这两个项目以为案例解释

  1. 全局安装 npm i lz-cmd -g
  2. Vue-components 项目下运行 npm init-y
  3. lz put 上传到远程目录下,并关闭 Vue-components 项目 路径下 lz-path.json 是过滤文件目录,lz-desc.json 是说明备注目录
  4. 打开 test 项目 运行 lz list -r 查看远程模板列表
  5. lz pull Vue-components 拉取 Vue 组件库到 test 项目下 node_modules 路径下
  6. lz list 查看 test 项目的模板库列表
  7. lz copy Vue-components 拷贝整个模板库到 test 目录下
  8. lz copy Tinymce 只拷贝 src\components\src\Tinymce 富文本组件到当前目录下
  9. 拷贝时多个模板文件的子文件夹重名 则会拷贝失败 需要指定模板名 lz copy Tinymce -Vue-components
  10. 其他命令请自行尝试研究
Git 仓库地址