File tree 5 files changed +17
-18
lines changed
5 files changed +17
-18
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@v3
17
+ - uses : actions/setup-node@v3
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 16
16
if ( process . stdin . isTTY || process . env . STDIN === '0' ) {
17
17
process . stdout . write ( clipboardy . readSync ( ) ) ;
18
18
} else {
19
- ( async ( ) => {
20
- clipboardy . writeSync ( await getStdin ( ) ) ;
21
- } ) ( ) ;
19
+ clipboardy . writeSync ( await getStdin ( ) ) ;
22
20
}
Original file line number Diff line number Diff line change 15
15
"clipboard" : " ./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"
39
39
" xsel"
40
40
],
41
41
"dependencies" : {
42
- "clipboardy" : " ^3 .0.0" ,
42
+ "clipboardy" : " ^4 .0.0" ,
43
43
"get-stdin" : " ^9.0.0" ,
44
- "meow" : " ^10 .1.1"
44
+ "meow" : " ^12 .1.1"
45
45
},
46
46
"devDependencies" : {
47
- "ava" : " ^3.15.0 " ,
48
- "execa" : " ^5.1 .1" ,
49
- "xo" : " ^0.45 .0"
47
+ "ava" : " ^5.3.1 " ,
48
+ "execa" : " ^8.0 .1" ,
49
+ "xo" : " ^0.56 .0"
50
50
}
51
51
}
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ npm install --global clipboard-cli
13
13
## Usage
14
14
15
15
```
16
- $ clipboard --help
16
+ clipboard --help
17
17
18
- Example
19
- $ echo 🦄 | clipboard
20
- $ clipboard
21
- 🦄
18
+ Example
19
+ $ echo 🦄 | clipboard
20
+ $ clipboard
21
+ 🦄
22
22
```
23
23
24
24
## Tip
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 input = '🦄' ;
You can’t perform that action at this time.
0 commit comments