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');
});