Socket
Book a DemoInstallSign in
Socket

get-repo

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-repo

Get the files in a repository on GitHub

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 04 Dec 2014

Did you know?

Socket

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.

Install

Related posts