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) {
|
||||
let cache = null;
|
||||
Object.defineProperty(bcoin, name, {
|
||||
enumerable: true,
|
||||
get() {
|
||||
if (!cache)
|
||||
cache = require(path);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user