Skip to content

2.2.1

Compare
Choose a tag to compare
@imevro imevro released this 10 Dec 08:36
· 149 commits to master since this release

Changelog

  • feature: colors.title with action argument for better color management

Thankfully to @af and #100 now you can paint even title! πŸ’…
For example, you can paint title for red if action has fail in type.

const logger = createLogger({
  colors: {
    title: (action) => {
      if (action.type.indexOf(`fail`)) {
        return `red`;
      } else {
        return `#111`;
      }
    };
  }
})