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

aiyou-dg

v1.1.5

Published

aiyou-dg(aiyou-download-git)是**哎呦系列**中,用于拉取远程或本地的Repository代码并且支持下载Repository的压缩包的工具包。

Downloads

3

Readme

aiyou-download-git(超轻量 Git Repository 下载工具)- 哎呦系列

nodejs>8.0 npm>6.0 aiyou_dowload_git aiyou-bud


aiyou-download-git 是什么鬼?

aiyou-download-git 是哎呦系列中,用于拉取远程或本地的 Repository 代码并且支持下载 Repository 的压缩包的工具包。

  • ✂️ 轻量:ES6class 代码编写,有良好的jsdoc注释,后续会添加jest单元测试以及typescript支持。
  • ⚡ 易用:交互式操作,可作为命令行工具来全局使用,也可作为第三方依赖包使用。
  • 💉 高效:支持多种 git 仓库及本地 git 仓库的源码或压缩包下载。
  • ⚙️️ 简单: 只有 3 个 api,分别是 get、clone、download,命令行工具也如此。

| nodejs | npm | size | | ------ | ----- | ------ | | > 8.0 | > 6.0 | 我管它 |

🔥 功能列表

aiyou-download-git 程序,可以同时运行在 windows 和类 unux 的电脑中:

| api | 效果 | | ------------------------------------- | ------------------------------------------------------------------ | | aiyou-dg | 打开 aiyou-download-git 程序的帮助文档 | | aiyou-dg get 仓库所有者/仓库名称 | 获取一份 github 上该所有者的指定仓库名称的代码 | | aiyou-dg clone 仓库所有者/仓库名称 | 克隆一份 github 上该所有者的指定仓库名称 master 分支上的代码 | | aiyou-dg download 仓库所有者/仓库名称 | 下载一份 github 上该所有者的指定仓库名称 master 分支上的代码压缩包 | | ... | 后续功能待优化 |


✨ 使用介绍

⚔️ 安装指南

全局安装:

    npm install -g aiyou-dg

作为第三方依赖安装:

    npm install aiyou-dg

📈 使用方法

全局使用(全局安装后的使用方式),在命令行工具中逐行输入以下命令:

    mkdir temporary-directory
    cd temporary-directory
    aiyou-dg

局部使用(作为第三方依赖包来使用),在 node 环境下的 js 文件中复制以下代码进行粘贴:

const AiYouDownloadGit = require ('aiyou-dg');
const aiyouDG = new AiYouDownloadGit ();

aiyouDG.get ({
    /* github上 该仓库的所有者/该仓库名称 */
    currentUrl: 'aiyoudiao/aiyou-download-git',
    /* 指定存放目录,可相对路径也可绝对路径 */
    targetPath: './temp/aiyou-download-git',
    /* 其它相关选项,一般可不动它*/
    option: {
        git: 'git',
        mode: 'clone',
        branchName: 'master',
        depthOne: false
    }).then(() => {
        // 获取代码成功之后做些啥...
        console.log('SUCCESS!')
    }).catch((reason)=> {
        // 获取代码失败之后做些啥...
        console.error(reason)
    });

😎 浮夸的效果

aiyou-dg成功失败


🚀 快速上手

安装->使用

📚 开发文档

aiyou-download-git 是最简单,易用的获得 Repository 仓库代码的工具。

代码仓库

github 链接

📞 社区交流

aiyou-download-git 是哎呦系列中一员,之后还会有其它的成员陆续上来。 加群交流:756892437 qq群

感谢以下开源工具

  • chalk
  • commander
  • cli-spinners
  • figlet
  • inquirer
  • ora
  • yargs