How to use the log-symbols.succes 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 posthtml / posthtml-w3c / index.js View on Github external
let table = tab(res.messages.map(msg => {
          let row = [
            `\n${type(msg.type) + ' ' + line(msg.lastLine, msg.firstColumn)}`,
            `\n${message(msg.message)}`
          ]

          return row
        }), {align: 'l', hsep: ''})

        console.log(table)

        let result = res.messages.length

        if (result === 0) {
          console.log(chalk.green(`\n${log.succes}  ${result} Errors`))
        }
        console.log(chalk.red(`\n${log.warning}  ${result} Errors`))
      }
    })

log-symbols

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

MIT
Latest version published 7 months ago

Package Health Score

78 / 100
Full package analysis