Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
aiyou-dg(aiyou-download-git)是**哎呦系列**中,用于拉取远程或本地的Repository代码并且支持下载Repository的压缩包的工具包。
aiyou-download-git 是哎呦系列中,用于拉取远程或本地的 Repository 代码并且支持下载 Repository 的压缩包的工具包。
ES6
class 代码编写,有良好的jsdoc
注释,后续会添加jest
单元测试以及typescript
支持。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-download-git 是最简单,易用的获得 Repository 仓库代码的工具。
aiyou-download-git 是哎呦系列中一员,之后还会有其它的成员陆续上来。 加群交流:756892437
FAQs
aiyou-dg(aiyou-download-git)是**哎呦系列**中,用于拉取远程或本地的Repository代码并且支持下载Repository的压缩包的工具包。
The npm package aiyou-dg receives a total of 7 weekly downloads. As such, aiyou-dg popularity was classified as not popular.
We found that aiyou-dg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.