development-docs/repl-api.md
readFile and fileExists implementations from REPLimport * as tsnode from 'ts-node';
const repl = tsnode.createRepl();
const service = tsnode.register({
... options,
...repl.evalAwarePartialHost
});
repl.setService(service);
// Start it
repl.start();
// or
const nodeRepl = require('repl').start({
...options,
eval: repl.nodeEval
});