Merge pull request #576 from braydonf/ac
Tab completion of API in Node.js REPL
This commit is contained in:
commit
e4f41db5ab
@ -30,6 +30,7 @@ const bcoin = exports;
|
|||||||
bcoin.define = function define(name, path) {
|
bcoin.define = function define(name, path) {
|
||||||
let cache = null;
|
let cache = null;
|
||||||
Object.defineProperty(bcoin, name, {
|
Object.defineProperty(bcoin, name, {
|
||||||
|
enumerable: true,
|
||||||
get() {
|
get() {
|
||||||
if (!cache)
|
if (!cache)
|
||||||
cache = require(path);
|
cache = require(path);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user