Now that JavaScript supports template strings, it's usually not necessary to use a string-formatting function.
Drop the format-util dependency, but continue to support ono.formatter. On Node.js, ono.formatter will default to util.format. In web browsers, it will default to undefined, but users can set it to format-util or their own implementation if they wish.
Now that JavaScript supports template strings, it's usually not necessary to use a string-formatting function.
Drop the
format-util
dependency, but continue to supportono.formatter
. On Node.js,ono.formatter
will default toutil.format
. In web browsers, it will default toundefined
, but users can set it toformat-util
or their own implementation if they wish.