Skip to content

github-action-log-helper 0.2.6

Install from the command line:
Learn more about npm packages
$ npm install @technote-space/github-action-log-helper@0.2.6
Install via package.json:
"@technote-space/github-action-log-helper": "0.2.6"

About this version

Github Action Log Helper

npm version CI Status codecov CodeFactor License: MIT

Read this in other languages: English, 日本語.

GitHub Actions 用のログヘルパー

Table of Contents

Details

インストール

yarn

  • yarn add @technote-space/github-action-log-helper

npm

  • npm i @technote-space/github-action-log-helper

Logger

import { Logger } from '@technote-space/github-action-log-helper';

const logger = new Logger();
logger.startProcess('Process name');
logger.displayCommand('command');
logger.displayStdout('stdout1\nstdout2');
logger.displayStderr('stderr1\nstderr2');
logger.log();
logger.info('output info');
logger.endProcess();

// ::group::Process name
// [command]command
//   >> stdout1
//   >> stdout2
// ::warning::  >> stderr1
// ::warning::  >> stderr2
// 
// > output info
// ::endgroup::

logger.getColorString('colored text', 'green'); // Color: 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white'
logger.getColorString('colored text', 'yellow', 'underline'); // Attribute: 'bold' | 'underline' | 'italic'
logger.c('colored text', 'yellow', 'underline'); // alias

Author

GitHub (Technote)
Blog

Details


Assets

  • github-action-log-helper-0.2.6-npm.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0