File tree Expand file tree Collapse file tree 4 files changed +19
-20
lines changed Expand file tree Collapse file tree 4 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ jobs:
10
10
fail-fast : false
11
11
matrix :
12
12
node-version :
13
- - 16
13
+ - 20
14
+ - 18
14
15
steps :
15
- - uses : actions/checkout@v2
16
- - uses : actions/setup-node@v2
16
+ - uses : actions/checkout@v4
17
+ - uses : actions/setup-node@v4
17
18
with :
18
19
node-version : ${{ matrix.node-version }}
19
20
- run : npm install
Original file line number Diff line number Diff line change 15
15
"string-width" : " ./cli.js"
16
16
},
17
17
"engines" : {
18
- "node" : " ^12.20.0 || ^14.13.1 || >=16.0.0 "
18
+ "node" : " >=18 "
19
19
},
20
20
"scripts" : {
21
21
"test" : " xo && ava"
28
28
" cli" ,
29
29
" string" ,
30
30
" character" ,
31
- " char" ,
32
31
" unicode" ,
33
32
" width" ,
34
33
" visual" ,
35
34
" column" ,
36
35
" columns" ,
37
36
" fullwidth" ,
38
37
" full-width" ,
39
- " full" ,
40
38
" ansi" ,
41
39
" escape" ,
42
40
" codes" ,
50
48
" fixed-width"
51
49
],
52
50
"dependencies" : {
53
- "meow" : " ^10 .1.1" ,
54
- "string-width" : " ^5 .0.0"
51
+ "meow" : " ^12 .1.1" ,
52
+ "string-width" : " ^7 .0.0"
55
53
},
56
54
"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"
60
58
}
61
59
}
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.
8
8
9
9
## Install
10
10
11
- ```
12
- $ npm install --global string-width-cli
11
+ ``` sh
12
+ npm install --global string-width-cli
13
13
```
14
14
15
15
## Usage
16
16
17
17
```
18
- $ string-width --help
18
+ string-width --help
19
19
20
- Usage
21
- $ string-width <text>
20
+ Usage
21
+ $ string-width <text>
22
22
23
- Example
24
- $ string-width a古
25
- 3
23
+ Example
24
+ $ string-width a古
25
+ 3
26
26
```
27
27
28
28
## Related
Original file line number Diff line number Diff line change 1
1
import test from 'ava' ;
2
- import execa from 'execa' ;
2
+ import { execa } from 'execa' ;
3
3
4
4
test ( 'main' , async t => {
5
5
const { stdout} = await execa ( './cli.js' , [ 'a古' ] ) ;
You can’t perform that action at this time.
0 commit comments