pinojs / quick-format-unescaped

Solves a problem with util.format
MIT License
17 stars 13 forks source link

unsupported %f and %i replacements #31

Closed commenthol closed 3 years ago

commenthol commented 3 years ago

console.log offers %f and %i as replacements which are unsupported by this package. %f is an alternative to %d where %i floors the numeric value.

e.g.

console.log('%f', 42.9) //> 42.9
console.log('%i', 42.9) //> 42

Is it a goal of this lib to support those replacements?

mcollina commented 3 years ago

I would say so! Would you like to send a PR?

commenthol commented 3 years ago

Thanks for the quick response. Yes will do.

commenthol commented 3 years ago

Thanks for merging