diff --git a/.github/funding.yml b/.github/funding.yml index 15edf6e..dd72fd7 100644 --- a/.github/funding.yml +++ b/.github/funding.yml @@ -1,4 +1,4 @@ github: sindresorhus open_collective: sindresorhus -patreon: sindresorhus +tidelift: npm/opn custom: https://sindresorhus.com/donate diff --git a/.github/security.md b/.github/security.md new file mode 100644 index 0000000..5358dc5 --- /dev/null +++ b/.github/security.md @@ -0,0 +1,3 @@ +# Security Policy + +To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. diff --git a/readme.md b/readme.md index e4b4c88..14e4455 100644 --- a/readme.md +++ b/readme.md @@ -49,7 +49,7 @@ const open = require('open'); It uses the command `open` on macOS, `start` on Windows and `xdg-open` on other platforms. -### open(target, [options]) +### open(target, options?) Returns a promise for the [spawned child process](https://nodejs.org/api/child_process.html#child_process_class_childprocess). You would normally not need to use this for anything, but it can be useful if you'd like to attach custom event listeners or perform other operations directly on the spawned process. @@ -100,6 +100,14 @@ You may also pass in the app's full path. For example on WSL, this can be `/mnt/ - [open-editor](https://github.com/sindresorhus/open-editor) - Open files in your editor at a specific line and column -## License +--- -MIT © [Sindre Sorhus](https://sindresorhus.com) +
+ + Get professional support for this package with a Tidelift subscription + +
+ + Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. +
+