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.
%d
outputFormatter
1 parent 5313c69 commit 69b5a48Copy full SHA for 69b5a48
src/common.js
@@ -83,13 +83,21 @@ function setup(env) {
83
}
84
85
/**
86
- * Map %+ to outputting diff
+ * Map %+ to humanize()'s defaults (1000ms diff => "1s")
87
*/
88
89
createDebug.outputFormatters['+'] = function(format, args) {
90
return '+' + createDebug.humanize(this.diff);
91
92
93
+ /**
94
+ * Map %d to returning milliseconds
95
+ */
96
+
97
+ createDebug.outputFormatters.d = function(format, args) {
98
+ return '+' + this.diff + "ms";
99
+ }
100
101
102
* Map %n to outputting namespace prefix
103
0 commit comments