Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: joyent/node
base: master
...
head fork: codenpk/node
compare: master
  • 8 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/console.js
4 lib/console.js
View
@@ -20,12 +20,11 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
var writeError = process.binding('stdio').writeError;
+var util = require('util');
// console object
var formatRegExp = /%[sdj]/g;
function format(f) {
- var util = require('util');
-
if (typeof f !== 'string') {
var objects = [];
for (var i = 0; i < arguments.length; i++) {
@@ -74,7 +73,6 @@ exports.error = exports.warn;
exports.dir = function(object) {
- var util = require('util');
process.stdout.write(util.inspect(object) + '\n');
};

No commit comments for this range

Something went wrong with that request. Please try again.