beauty-html-log
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Install

pnpm add beauty-html-log

Usage

import beautyHtmlLog from 'beauty-html-log'

const { setBeautyHtmlLog } = beautyHtmlLog()

let result = ''

const transLine = (lineText) => {
  return setBeautyHtmlLog(lineText, (target) => {
    const eventMap = {
      'Finished: SUCCESS': '成功',
      'Finished: ABORTED': '已终止',
      'Finished: UNSTABLE': '不稳定版本',
      'Finished: FAILURE': '失败'
    }
    result = eventMap[target] || ''
  })
}

/beauty-html-log/

    Package Sidebar

    Install

    npm i beauty-html-log

    Weekly Downloads

    22

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    6.69 kB

    Total Files

    6

    Last publish

    Collaborators

    • jacksongao188