{"size": 420, "ext": "js", "max_stars_repo_path": "example.js", "max_stars_repo_name": "sreekanth370/capture-stream", "max_stars_repo_stars_event_min_datetime": "2015-09-23T13:01:19.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-12T21:51:44.000Z", "max_issues_repo_path": "example.js", "max_issues_repo_name": "sreekanth370/capture-stream", "max_issues_repo_issues_event_min_datetime": "2015-09-29T02:11:48.000Z", "max_issues_repo_issues_event_max_datetime": "2020-12-22T04:47:02.000Z", "max_forks_repo_path": "example.js", "max_forks_repo_name": "sreekanth370/capture-stream", "max_forks_repo_forks_event_min_datetime": "2015-09-29T00:23:41.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-21T09:09:39.000Z"}
{"max_stars_count": 12, "max_issues_count": 4, "max_forks_count": 4, "avg_line_length": 18.2608695652, "max_line_length": 49, "alphanum_fraction": 0.6047619048}
'use strict';

var capture = require('./');
var restore = capture(process.stdout);

console.log('Hello, world!!!');
console.log('foo', 'bar');

var output = restore();
console.log(output);
//=> [ [ 'Hello, world!!!\n' ], [ 'foo bar\n' ] ]

restore = capture(process.stdout);

console.log('Hello, world!!!');
console.log('foo', 'bar');

output = restore(true);
console.log(output);
//=> Hello, world!!!
//=> foo bar
//=>
