1. 首页
  2. 考试认证
  3. 其它
  4. fripost git获取并返回Git存储库名称

fripost git获取并返回Git存储库名称

上传者: 2024-12-12 23:51:01上传 ZIP文件 1.63KB 热度 6次

fripost-git 从解析 Git 存储库名称并返回数组中的名称。如果用作 CLI 工具,则将 Git URL 打印到 stdout。

用法:


var fripost = require('fripost-git');

fripost(function(err, repos) {

  repos.forEach(function(repo) {

    console.log('https://git.fripost.org/pub/' + repo);

  });

});

示例输出:

  • https://git.fripost.org/pub/fripost-docs.git

  • https://git.fripost.org/pub/fripost-meetings.git

  • https://git.fripost.org/pub/fripost-prop.git

下载地址
用户评论