get-repo

Get the files in a repository on GitHub

MIT 1 个版本
安装
npm install get-repo
yarn add get-repo
pnpm add get-repo
bun add get-repo
README

get-repo

Get the files in a repository on GitHub

Build Status Dependency Status NPM version

Installation

npm install get-repo

Usage

var fs = require('fs');
var getRepo = require('get-repo');

getRepo('jadejs', 'jade-lexer', {cache: testCache}).on('data', function (entry) {
  console.log(entry.type + ': ' + entry.path);
  if (entry.type === 'Directory') {
    fs.mkdirSync(__dirname + '/jade-lexer' + entry.path);
  }
  if (entry.type === 'File') {
    fs.writeFileSync(__dirname + '/jade-lexer' + entry.path, entry.body);
  }
}).on('end', function () {
  console.log('done');
});

License

MIT

版本列表
1.0.0 2014-12-04