{"size": 290, "ext": "js", "max_stars_repo_path": "app/controllers/start.js", "max_stars_repo_name": "pandaLv/kasweets-server", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/controllers/start.js", "max_issues_repo_name": "pandaLv/kasweets-server", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/controllers/start.js", "max_forks_repo_name": "pandaLv/kasweets-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.25, "max_line_length": 75, "alphanum_fraction": 0.7034482759}
var cp = require('child_process');

module.exports = function (req, res) {
  var child = cp.spawn('echo', ['你好', "钩子"]); // 执行命令
  child.stdout.pipe(process.stdout); // child.stdout是输入流，process.stdout是输出流
  // 这句的意思是将子进程的输出作为当前程序的输入流，然后重定向到当前程序的标准输出，即控制台
  res.send('look at the console')
}