Skip to content

Commit

Permalink
embed createColors to the default export directly
Browse files Browse the repository at this point in the history
  • Loading branch information
borodean committed Oct 4, 2021
1 parent 89cef1f commit 22392c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picocolors.js
Expand Up @@ -53,7 +53,7 @@ let createColors = (enabled = isColorSupported) => ({
bgMagenta: enabled ? formatter("\x1b[45m", "\x1b[49m") : String,
bgCyan: enabled ? formatter("\x1b[46m", "\x1b[49m") : String,
bgWhite: enabled ? formatter("\x1b[47m", "\x1b[49m") : String,
createColors,
})

module.exports = createColors()
module.exports.createColors = createColors

0 comments on commit 22392c3

Please sign in to comment.