diff --git a/index.js b/index.js index a632b6a..5aff7d2 100644 --- a/index.js +++ b/index.js @@ -235,4 +235,11 @@ PythonShell.prototype.end = function (callback) { return this; }; +/** + * Kill the process (send SIGTERM signal). + */ +PythonShell.prototype.kill = function () { + this.childProcess.kill() ; +}; + module.exports = PythonShell;