Skip to content

Commit 7c1116a

Browse files
committed
added checkSyntax to readme
1 parent dd1374e commit 7c1116a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: README.md

+10
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,16 @@ Closes the stdin stream, allowing the Python script to finish and exit. The opti
258258

259259
Terminates the python script, the optional end callback is invoked if specified. A kill signal may be provided by `signal`, if `signal` is not specified SIGTERM is sent.
260260

261+
#### `checkSyntax(code:string)`
262+
263+
Checks the syntax of the code and returns a promise.
264+
Promise is rejected if there is a syntax error.
265+
266+
#### `checkSyntaxFile(filePath:string)`
267+
268+
Checks the syntax of the file and returns a promise.
269+
Promise is rejected if there is a syntax error.
270+
261271
#### event: `message`
262272

263273
Fires when a chunk of data is parsed from the stdout stream via the `receive` method. If a `parser` method is specified, the result of this function will be the message value. This event is not emitted in binary mode.

0 commit comments

Comments
 (0)