python-shell
Advanced tools
+32
-0
@@ -148,1 +148,33 @@ /// <reference types="node" /> | ||
| } | ||
| export interface PythonShell { | ||
| addListener(event: string, listener: (...args: any[]) => void): this; | ||
| emit(event: string | symbol, ...args: any[]): boolean; | ||
| on(event: string, listener: (...args: any[]) => void): this; | ||
| once(event: string, listener: (...args: any[]) => void): this; | ||
| prependListener(event: string, listener: (...args: any[]) => void): this; | ||
| prependOnceListener(event: string, listener: (...args: any[]) => void): this; | ||
| addListener(event: "message", listener: (parsedChunk: any) => void): this; | ||
| emit(event: "message", parsedChunk: any): boolean; | ||
| on(event: "message", listener: (parsedChunk: any) => void): this; | ||
| once(event: "message", listener: (parsedChunk: any) => void): this; | ||
| prependListener(event: "message", listener: (parsedChunk: any) => void): this; | ||
| prependOnceListener(event: "message", listener: (parsedChunk: any) => void): this; | ||
| addListener(event: "stderr", listener: (parsedChunk: any) => void): this; | ||
| emit(event: "stderr", parsedChunk: any): boolean; | ||
| on(event: "stderr", listener: (parsedChunk: any) => void): this; | ||
| once(event: "stderr", listener: (parsedChunk: any) => void): this; | ||
| prependListener(event: "stderr", listener: (parsedChunk: any) => void): this; | ||
| prependOnceListener(event: "stderr", listener: (parsedChunk: any) => void): this; | ||
| addListener(event: "close", listener: () => void): this; | ||
| emit(event: "close"): boolean; | ||
| on(event: "close", listener: () => void): this; | ||
| once(event: "close", listener: () => void): this; | ||
| prependListener(event: "close", listener: () => void): this; | ||
| prependOnceListener(event: "close", listener: () => void): this; | ||
| addListener(event: "error", listener: (error: PythonShellError) => void): this; | ||
| emit(event: "error", error: PythonShellError): boolean; | ||
| on(event: "error", listener: (error: PythonShellError) => void): this; | ||
| once(event: "error", listener: (error: PythonShellError) => void): this; | ||
| prependListener(event: "error", listener: (error: PythonShellError) => void): this; | ||
| prependOnceListener(event: "error", listener: (error: PythonShellError) => void): this; | ||
| } |
+1
-1
| { | ||
| "name": "python-shell", | ||
| "version": "2.0.2", | ||
| "version": "2.0.3", | ||
| "description": "Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
+1
-1
@@ -107,3 +107,3 @@ # [python-shell](https://www.npmjs.com/package/python-shell) [](https://ci.appveyor.com/project/Almenon/python-shell/branch/master) [](https://codecov.io/gh/extrabacon/python-shell) | ||
| * use `text` mode for exchanging lines of text | ||
| * use `text` mode for exchanging lines of text ending with a [newline character](http://hayne.net/MacDev/Notes/unixFAQ.html#endOfLine). | ||
| * use `json` mode for exchanging JSON fragments | ||
@@ -110,0 +110,0 @@ * use `binary` mode for anything else (data is sent and received as-is) |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
47849
5%567
5.98%