Skip to content

Commit

Permalink
Require Node.js 18
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 23, 2023
1 parent 82b5953 commit 1edca4f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
fail-fast: false
matrix:
node-version:
- 16
- 20
- 18
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
4 changes: 1 addition & 3 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ meow(`
if (process.stdin.isTTY || process.env.STDIN === '0') {
process.stdout.write(clipboardy.readSync());
} else {
(async () => {
clipboardy.writeSync(await getStdin());
})();
clipboardy.writeSync(await getStdin());
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"clipboard": "./cli.js"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": ">=18"
},
"scripts": {
"test": "xo && ava"
Expand All @@ -39,13 +39,13 @@
"xsel"
],
"dependencies": {
"clipboardy": "^3.0.0",
"clipboardy": "^4.0.0",
"get-stdin": "^9.0.0",
"meow": "^10.1.1"
"meow": "^12.1.1"
},
"devDependencies": {
"ava": "^3.15.0",
"execa": "^5.1.1",
"xo": "^0.45.0"
"ava": "^5.3.1",
"execa": "^8.0.1",
"xo": "^0.56.0"
}
}
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ npm install --global clipboard-cli
## Usage

```
$ clipboard --help
clipboard --help
Example
$ echo 🦄 | clipboard
$ clipboard
🦄
Example
$ echo 🦄 | clipboard
$ clipboard
🦄
```

## Tip
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import execa from 'execa';
import {execa} from 'execa';

test('main', async t => {
const input = '🦄';
Expand Down

0 comments on commit 1edca4f

Please # to comment.