File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ jobs:
1010 fail-fast : false
1111 matrix :
1212 node-version :
13- - 16
13+ - 20
14+ - 18
1415 steps :
15- - uses : actions/checkout@v2
16- - uses : actions/setup-node@v2
16+ - uses : actions/checkout@v4
17+ - uses : actions/setup-node@v4
1718 with :
1819 node-version : ${{ matrix.node-version }}
1920 - run : npm install
Original file line number Diff line number Diff line change 1515 "string-width" : " ./cli.js"
1616 },
1717 "engines" : {
18- "node" : " ^12.20.0 || ^14.13.1 || >=16.0.0 "
18+ "node" : " >=18 "
1919 },
2020 "scripts" : {
2121 "test" : " xo && ava"
2828 " cli" ,
2929 " string" ,
3030 " character" ,
31- " char" ,
3231 " unicode" ,
3332 " width" ,
3433 " visual" ,
3534 " column" ,
3635 " columns" ,
3736 " fullwidth" ,
3837 " full-width" ,
39- " full" ,
4038 " ansi" ,
4139 " escape" ,
4240 " codes" ,
5048 " fixed-width"
5149 ],
5250 "dependencies" : {
53- "meow" : " ^10 .1.1" ,
54- "string-width" : " ^5 .0.0"
51+ "meow" : " ^12 .1.1" ,
52+ "string-width" : " ^7 .0.0"
5553 },
5654 "devDependencies" : {
57- "ava" : " ^3.15.0 " ,
58- "execa" : " ^5.1 .1" ,
59- "xo" : " ^0.44 .0"
55+ "ava" : " ^5.3.1 " ,
56+ "execa" : " ^8.0 .1" ,
57+ "xo" : " ^0.56 .0"
6058 }
6159}
Original file line number Diff line number Diff line change @@ -8,21 +8,21 @@ Useful to be able to measure the actual width of command-line output.
88
99## Install
1010
11- ```
12- $ npm install --global string-width-cli
11+ ``` sh
12+ npm install --global string-width-cli
1313```
1414
1515## Usage
1616
1717```
18- $ string-width --help
18+ string-width --help
1919
20- Usage
21- $ string-width <text>
20+ Usage
21+ $ string-width <text>
2222
23- Example
24- $ string-width a古
25- 3
23+ Example
24+ $ string-width a古
25+ 3
2626```
2727
2828## Related
Original file line number Diff line number Diff line change 11import test from 'ava' ;
2- import execa from 'execa' ;
2+ import { execa } from 'execa' ;
33
44test ( 'main' , async t => {
55 const { stdout} = await execa ( './cli.js' , [ 'a古' ] ) ;
You can’t perform that action at this time.
0 commit comments