Skip to content

Commit 8812aa9

Browse files
committed
Require Node.js 18
1 parent 73ad335 commit 8812aa9

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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"
@@ -28,15 +28,13 @@
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",
@@ -50,12 +48,12 @@
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
}

readme.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import execa from 'execa';
2+
import {execa} from 'execa';
33

44
test('main', async t => {
55
const {stdout} = await execa('./cli.js', ['a古']);

0 commit comments

Comments
 (0)