UNPKG
eyo
Version:
latest (6.1.1)
6.1.1
6.1.0
6.0.1
6.0.0
5.0.0
4.2.2
4.2.1
4.2.0
4.1.1
4.1.0
4.0.1
4.0.0
3.1.1
3.1.0
3.0.2
3.0.1
3.0.0
2.0.2
2.0.1
2.0.0
1.2.0
1.1.0
1.0.0
0.6.0
0.5.0
0.2.1
0.1.1
0.1.0
CLI for restoring the letter «ё» (yo) in russian texts
github.com/e2yo/eyo
e2yo/eyo
eyo
/
lib
/
symbols.mjs
8 lines
(6 loc)
•
294 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
chalk
from
'chalk'
;
export
const
isWin = process.
platform
===
'win32'
;
export
const
okSymbol = isWin ?
'[OK]'
:
'✓'
;
export
const
errorSymbol = isWin ?
'[ERR]'
:
'✗'
;
export
const
warningSymbol = isWin ?
'[!]'
:
'⚠'
;
export
const
diffColor = isWin ? chalk.
underline
: chalk.
bold
;