Closed jd327 closed 7 years ago
Yea I think the API was pretty flawed. If you want custom formatting you now have to import createFormatter()
. It also now merges the default configuration so it shouldn't throw at you anymore.
const { createFormatter } = require('fmt-obj')
const format = createFormatter({
annotation: chalk.red.bold.italic.whatever
})
Shouldn't
readme
customFormat
example containInfinity
as the 2nd param?If you don't provide one of the color properties, it throws this. Can you merge with the default object?