console.log()
calls process.stdout.write
with formatted output. See format()
in console.js for the implementation.
Currently (v0.10.ish):
Console.prototype.log = function() {
this._stdout.write(util.format.apply(this, arguments) + '\n');
};
More Related Contents:
- Writing to files in Node.js
- What is this JavaScript “require”?
- parseInt vs unary plus, when to use which?
- How to run Gulp tasks sequentially one after the other
- Streaming a video file to an html5 video player with Node.js so that the video controls continue to work?
- node.js: read a text file into an array. (Each line an item in the array.)
- How to stop babel from transpiling ‘this’ to ‘undefined’ (and inserting “use strict”)
- Converting a Buffer into a ReadableStream in Node.js
- How to send a message to a particular client with socket.io
- Trying to use the DOMParser with node js
- node-request – Getting error “SSL23_GET_SERVER_HELLO:unknown protocol”
- javascript node.js next()
- How to get response from S3 getObject in Node.js?
- puppeteer: how to wait until an element is visible?
- Accessing EJS variable in Javascript logic
- Good beginners tutorial to socket.io? [closed]
- Using node.js’s File System functions from a browser
- Replace a string in a file with nodejs
- nodemon command is not recognized in terminal for node js server
- How to append to New Line in Node.js
- How do I properly insert multiple rows into PG with node-postgres?
- Invalid shorthand property initializer [closed]
- Is it okay to use babel-node in production
- TypeError: Converting circular structure to JSON in nodejs
- Update all clients using Socket.io?
- Node.js: When to use Promises vs Callbacks
- How can I use webpack with express?
- ASYNC / AWAIT SyntaxError: await is only valid in async functions and the top level bodies of modules
- How to apply both ValidationPipe() and ParseIntPipe() to params?
- Approach to multiple MySQL queries with Node.js