We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a3c8c1 commit e55fdc4Copy full SHA for e55fdc4
doc/api/util.markdown
@@ -438,11 +438,13 @@ through the `constructor.super_` property.
438
439
Marks that a method should not be used any more.
440
441
- exports.puts = exports.deprecate(function() {
+ var util = require('util');
442
+
443
+ exports.puts = util.deprecate(function() {
444
for (var i = 0, len = arguments.length; i < len; ++i) {
445
process.stdout.write(arguments[i] + '\n');
446
}
- }, 'util.puts: Use console.log instead')
447
+ }, 'util.puts: Use console.log instead');
448
449
It returns a modified function which warns once by default.
450
0 commit comments