Skip to content

Commit

Permalink
Require Node.js 10
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
sindresorhus committed Mar 19, 2020
1 parent 46ad34a commit 630bb48
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ language: node_js
node_js:
- '12'
- '10'
- '8'
1 change: 1 addition & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const getStdin = require('get-stdin');
const tempWrite = require('temp-write');
const fileType = require('file-type');

// eslint-disable-next-line unicorn/string-content
const cli = meow(`
Usage
$ open-cli <file|url> [--wait] [--background] [-- <app> [args]]
Expand Down
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"bin": {
"open-cli": "cli.js"
},
"engines": {
"node": ">=8"
"node": ">=10"
},
"scripts": {
"test": "xo && ava"
Expand Down Expand Up @@ -49,15 +49,15 @@
"file"
],
"dependencies": {
"file-type": "^11.0.0",
"file-type": "^14.1.4",
"get-stdin": "^7.0.0",
"meow": "^5.0.0",
"open": "^6.3.0",
"meow": "^6.1.0",
"open": "^7.0.3",
"temp-write": "^4.0.0"
},
"devDependencies": {
"ava": "^1.4.1",
"execa": "^1.0.0",
"xo": "^0.24.0"
"execa": "^4.0.0",
"xo": "^0.28.0"
}
}
8 changes: 0 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

> Open stuff like URLs, files, executables. Cross-platform.

## Install

```
$ npm install --global open-cli
```


## Usage

```
Expand All @@ -35,12 +33,6 @@ $ open-cli --help

The [following file types](https://github.com/sindresorhus/file-type#supported-file-types) are automagically detected when using stdin mode.


## Related

- [open](https://github.com/sindresorhus/open) - API for this module


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

0 comments on commit 630bb48

Please sign in to comment.