How to use the log-symbols.fail function in log-symbols

To help you get started, we’ve selected a few log-symbols 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 LienJack / alice-cli / lib / download.js View on Github external
target, { clone: true }, (err) => {
      if (err) {
        spinner.fail()
        console.log(logSymbols.fail, chalk.red("模板下载失败:("));
        reject(err)
      } else {
        spinner.succeed()
        console.log(logSymbols.success, chalk.green("模板下载完毕:)"));
        resolve(target)
      }
    })
  })

log-symbols

Colored symbols for various log levels. Example: `✔︎ Success`

MIT
Latest version published 3 months ago

Package Health Score

85 / 100
Full package analysis