Comparing version 0.3.0 to 0.3.1
10
cli.js
@@ -40,4 +40,7 @@ #!/usr/bin/env node | ||
var printNameTable = function (names) { | ||
var renderNameTable = function (names) { | ||
var table = pairs(names); | ||
if (!table.length) { | ||
return ''; | ||
} | ||
@@ -52,3 +55,3 @@ table.forEach(function (row) { | ||
table.push(table[1]); | ||
console.log('\r' + textTable(table)); | ||
return textTable(table); | ||
}; | ||
@@ -79,3 +82,4 @@ | ||
if (opts.verbose) { | ||
printNameTable(names); | ||
var table = renderNameTable(names); | ||
console.log('\r' + (table || chalk.dim('(No modules found.)'))); | ||
} | ||
@@ -82,0 +86,0 @@ repl.displayPrompt(); |
@@ -18,4 +18,6 @@ 'use strict'; | ||
if (err) { | ||
ee.emit('error', err); | ||
return; | ||
if (err.code == 'ENOENT') { | ||
return ee.emit('end'); | ||
} | ||
return ee.emit('error', err); | ||
} | ||
@@ -22,0 +24,0 @@ |
{ | ||
"name": "repl-here", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Start the REPL and load the entire ./node_modules/ into it", | ||
@@ -5,0 +5,0 @@ "author": "Eugene Sharygin <eush77@gmail.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6910
106