On this line of code there's validation for fmt to be a string:
|
if ('string' != typeof fmt) throw new Error('format required'); |
But if the second argument, passed to constructor, is a number (total), this validation is skipped and, later on, the rendering fails.
On this line of code there's validation for fmt to be a string:
node-progress/lib/node-progress.js
Line 54 in 30d70d9
But if the second argument, passed to constructor, is a number (total), this validation is skipped and, later on, the rendering fails.