1.0.4 • Published 9 months ago

beauty-html-log v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

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] || ''
  })
}
1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago