From 6fa994890b285a7426d2445a28ae5b745f169d80 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Fri, 8 May 2020 02:39:59 +0200 Subject: [PATCH] repl: add builtinModules This adds an alias to `_builtinLibs` that is documented and should as such also be accessed publicly. It does not contain any underscored modules. Signed-off-by: Ruben Bridgewater --- doc/api/repl.md | 9 +++++++++ lib/repl.js | 9 ++++++++- test/parallel/test-repl-tab-complete.js | 13 +++++++++++-- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index d52ff0e7d012c5..5a2c35f4a1c494 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -540,6 +540,15 @@ by default. However, this is not the case when creating a REPL programmatically. Use this method to initialize a history log file when working with REPL instances programmatically. +## `repl.builtinModules` + + +* {string[]} + +A list of the names of all Node.js modules, e.g., `'http'`. + ## `repl.start([options])`