How to use the cli-highlight.fromJson function in cli-highlight

To help you get started, we’ve selected a few cli-highlight examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mikro-orm / mikro-orm / lib / utils / Configuration.ts View on Github external
constructor(options: Options, validate = true) {
    this.options = Utils.merge({}, Configuration.DEFAULTS, options);
    this.options.baseDir = Utils.absolutePath(this.options.baseDir);

    if (validate) {
      this.validateOptions();
    }

    this.logger = new Logger(this.options.logger, this.options.debug);
    this.driver = this.initDriver();
    this.platform = this.driver.getPlatform();
    this.highlightTheme = fromJson(this.options.highlightTheme!);
    this.init();
  }

cli-highlight

Syntax highlighting in your terminal

ISC
Latest version published 4 years ago

Package Health Score

66 / 100
Full package analysis