levels.js 251 B

123456789101112
  1. 'use strict';
  2. const { Colorizer } = require('./colorize');
  3. /*
  4. * Simple method to register colors with a simpler require
  5. * path within the module.
  6. */
  7. module.exports = config => {
  8. Colorizer.addColors(config.colors || config);
  9. return config;
  10. };