4 Star 5 Fork 0

Git工具集/gitinspector

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gitinspector.js 746 Bytes
一键复制 编辑 原始数据 按行查看 历史
Bart van Andel 提交于 2016-12-02 19:06 +08:00 . Setup npm package
var PythonShell = require('python-shell');
var options = {
// The main python script is in the same directory as this file
scriptPath: __dirname,
// Get command line arguments, skipping the default node args:
// arg0 == node executable, arg1 == this file
args: process.argv.slice(2)
};
// Set encoding used by stdin etc manually. Without this, gitinspector may fail to run.
process.env.PYTHONIOENCODING = 'utf8';
// Start inspector
var inspector = new PythonShell('gitinspector.py', options);
// Handle stdout
inspector.on('message', function(message) {
console.log(message);
});
// Let the inspector run, catching any error at the end
inspector.end(function (err) {
if (err) {
throw err;
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/vcs-all-in-one/gitinspector.git
git@gitee.com:vcs-all-in-one/gitinspector.git
vcs-all-in-one
gitinspector
gitinspector
master

搜索帮助