Files
kiss-flixel/feedback-server/externs/node/Repl.hx

40 lines
1.2 KiB
Haxe

package node;
/**
The `node:repl` module provides a Read-Eval-Print-Loop (REPL) implementation
that is available both as a standalone program or includible in other
applications. It can be accessed using:
```js
const repl = require('node:repl');
```
**/
@:jsRequire("repl") @valueModuleOnly extern class Repl {
/**
The `repl.start()` method creates and starts a {@link REPLServer} instance.
If `options` is a string, then it specifies the input prompt:
```js
const repl = require('node:repl');
// a Unix style prompt
repl.start('$ ');
```
**/
static function start(?options:ts.AnyOf2<String, node.repl.ReplOptions>):node.repl.REPLServer;
/**
This is the default "writer" value, if none is passed in the REPL options,
and it can be overridden by custom print functions.
**/
static final writer : Dynamic;
/**
A flag passed in the REPL options. Evaluates expressions in sloppy mode.
**/
static final REPL_MODE_SLOPPY : js.lib.Symbol;
/**
A flag passed in the REPL options. Evaluates expressions in strict mode.
This is equivalent to prefacing every repl statement with `'use strict'`.
**/
static final REPL_MODE_STRICT : js.lib.Symbol;
}