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

zl-gitckt-specdir

v1.0.0

Published

node开发的,一个可以检出git仓库指定目录的模块

Downloads

1

Readme

zl-gitckt-specdir

node开发的,一个可以检出git仓库指定目录的模块

在程序代码中调用

  1. 本地安装:npm i zl-gitckt-specdir -S

  2. 使用

let gitcktSpecdir = require("zl-gitckt-specdir");
// 从如下gitUrl地址拉取项目目录indexDB-demo
gitcktSpecdir({
    gitUrl: 'https://gitee.com/zhangluzhanglu/zl-pro-demo-code.git',
    dirName: 'indexDB-demo',
    saveDir: "./aa/bb/cc/dd/zzzz"
})

在cmd/终端窗口中调用

  1. 全局安装:npm i zl-gitckt-specdir -g

  2. 使用


格式:命令 参数

示例
  命令:zl-gitpull 
  参数:gitUrl=https://gitee.com/zhangluzhanglu/zl-pro-demo-code.git##dirName=indexDB-demo##saveDir=.
  参数格式说明:  参数名=参数值##参数名=参数值##参数名=参数值   (参数之间以两个#作为分隔符)

完整调用:zl-gitpull gitUrl=https://gitee.com/zhangluzhanglu/zl-pro-demo-code.git##dirName=indexDB-demo##saveDir=./

完整参数说明

 * @description 从远程git仓库拉取指定目录内容
 * @param {object} param 参数对象 
 * @param {string} param.gitUrl  欲拉取项目的git仓库地址 
 * @param {string} param.dirName 拉取的指定目录名
 * @param {string} param.saveDir 拉取的内容保存地址,默认为当前目录 
 * @param {string} param.delGit  拉取完后是否删除.git文件(默认为true,删除)
 * @param {string} param.isUseEndDir  如果指定的目录有多个层级,那么是否取最后一级,默认为true,取最后一级.否则取完整路径