{
  "manifest": {
    "name": "open",
    "version": "8.4.2",
    "description": "Open stuff like URLs, files, executables. Cross-platform.",
    "license": "MIT",
    "repository": {
      "type": "git",
      "url": "https://github.com/sindresorhus/open.git"
    },
    "funding": "https://github.com/sponsors/sindresorhus",
    "author": {
      "name": "Sindre Sorhus",
      "email": "sindresorhus@gmail.com",
      "url": "https://sindresorhus.com"
    },
    "engines": {
      "node": ">=12"
    },
    "scripts": {
      "test": "xo && tsd"
    },
    "files": [
      "index.js",
      "index.d.ts",
      "xdg-open"
    ],
    "keywords": [
      "app",
      "open",
      "opener",
      "opens",
      "launch",
      "start",
      "xdg-open",
      "xdg",
      "default",
      "cmd",
      "browser",
      "editor",
      "executable",
      "exe",
      "url",
      "urls",
      "arguments",
      "args",
      "spawn",
      "exec",
      "child",
      "process",
      "website",
      "file"
    ],
    "dependencies": {
      "define-lazy-prop": "^2.0.0",
      "is-docker": "^2.1.1",
      "is-wsl": "^2.2.0"
    },
    "devDependencies": {
      "@types/node": "^15.0.0",
      "ava": "^3.15.0",
      "tsd": "^0.14.0",
      "xo": "^0.39.1"
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-open-8.4.2-5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9-integrity/node_modules/open/package.json",
    "readmeFilename": "readme.md",
    "readme": "# open\n\n> Open stuff like URLs, files, executables. Cross-platform.\n\nThis is meant to be used in command-line tools and scripts, not in the browser.\n\nIf you need this for Electron, use [`shell.openPath()`](https://www.electronjs.org/docs/api/shell#shellopenpathpath) instead.\n\nThis package does not make any security guarantees. If you pass in untrusted input, it's up to you to properly sanitize it.\n\n#### Why?\n\n- Actively maintained.\n- Supports app arguments.\n- Safer as it uses `spawn` instead of `exec`.\n- Fixes most of the original `node-open` issues.\n- Includes the latest [`xdg-open` script](https://gitlab.freedesktop.org/xdg/xdg-utils/-/blob/master/scripts/xdg-open.in) for Linux.\n- Supports WSL paths to Windows apps.\n\n## Install\n\n```sh\nnpm install open\n```\n\n## Usage\n\n```js\nconst open = require('open');\n\n// Opens the image in the default image viewer and waits for the opened app to quit.\nawait open('unicorn.png', {wait: true});\nconsole.log('The image viewer app quit');\n\n// Opens the URL in the default browser.\nawait open('https://sindresorhus.com');\n\n// Opens the URL in a specified browser.\nawait open('https://sindresorhus.com', {app: {name: 'firefox'}});\n\n// Specify app arguments.\nawait open('https://sindresorhus.com', {app: {name: 'google chrome', arguments: ['--incognito']}});\n\n// Open an app\nawait open.openApp('xcode');\n\n// Open an app with arguments\nawait open.openApp(open.apps.chrome, {arguments: ['--incognito']});\n```\n\n## API\n\nIt uses the command `open` on macOS, `start` on Windows and `xdg-open` on other platforms.\n\n### open(target, options?)\n\nReturns 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.\n\n#### target\n\nType: `string`\n\nThe thing you want to open. Can be a URL, file, or executable.\n\nOpens in the default app for the file type. For example, URLs opens in your default browser.\n\n#### options\n\nType: `object`\n\n##### wait\n\nType: `boolean`\\\nDefault: `false`\n\nWait for the opened app to exit before fulfilling the promise. If `false` it's fulfilled immediately when opening the app.\n\nNote that it waits for the app to exit, not just for the window to close.\n\nOn Windows, you have to explicitly specify an app for it to be able to wait.\n\n##### background <sup>(macOS only)</sup>\n\nType: `boolean`\\\nDefault: `false`\n\nDo not bring the app to the foreground.\n\n##### newInstance <sup>(macOS only)</sup>\n\nType: `boolean`\\\nDefault: `false`\n\nOpen a new instance of the app even it's already running.\n\nA new instance is always opened on other platforms.\n\n##### app\n\nType: `{name: string | string[], arguments?: string[]} | Array<{name: string | string[], arguments: string[]}>`\n\nSpecify the `name` of the app to open the `target` with, and optionally, app `arguments`. `app` can be an array of apps to try to open and `name` can be an array of app names to try. If each app fails, the last error will be thrown.\n\nThe app name is platform dependent. Don't hard code it in reusable modules. For example, Chrome is `google chrome` on macOS, `google-chrome` on Linux and `chrome` on Windows. If possible, use [`open.apps`](#openapps) which auto-detects the correct binary to use.\n\nYou may also pass in the app's full path. For example on WSL, this can be `/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe` for the Windows installation of Chrome.\n\nThe app `arguments` are app dependent. Check the app's documentation for what arguments it accepts.\n\n##### allowNonzeroExitCode\n\nType: `boolean`\\\nDefault: `false`\n\nAllow the opened app to exit with nonzero exit code when the `wait` option is `true`.\n\nWe do not recommend setting this option. The convention for success is exit code zero.\n\n### open.apps\n\nAn object containing auto-detected binary names for common apps. Useful to work around [cross-platform differences](#app).\n\n```js\nconst open = require('open');\n\nawait open('https://google.com', {\n\tapp: {\n\t\tname: open.apps.chrome\n\t}\n});\n```\n\n#### Supported apps\n\n- [`chrome`](https://www.google.com/chrome) - Web browser\n- [`firefox`](https://www.mozilla.org/firefox) - Web browser\n- [`edge`](https://www.microsoft.com/edge) - Web browser\n\n### open.openApp(name, options?)\n\nOpen an app.\n\nReturns 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.\n\n#### name\n\nType: `string`\n\nThe app name is platform dependent. Don't hard code it in reusable modules. For example, Chrome is `google chrome` on macOS, `google-chrome` on Linux and `chrome` on Windows. If possible, use [`open.apps`](#openapps) which auto-detects the correct binary to use.\n\nYou may also pass in the app's full path. For example on WSL, this can be `/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe` for the Windows installation of Chrome.\n\n#### options\n\nType: `object`\n\nSame options as [`open`](#options) except `app` and with the following additions:\n\n##### arguments\n\nType: `string[]`\\\nDefault: `[]`\n\nArguments passed to the app.\n\nThese arguments are app dependent. Check the app's documentation for what arguments it accepts.\n\n## Related\n\n- [open-cli](https://github.com/sindresorhus/open-cli) - CLI for this module\n- [open-editor](https://github.com/sindresorhus/open-editor) - Open files in your editor at a specific line and column\n",
    "licenseText": "MIT License\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)\n\nPermission 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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz",
    "hash": "5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9",
    "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",
    "registry": "npm",
    "packageName": "open",
    "cacheIntegrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ== sha1-W1/+Ko95Pc0qrXPlUMuHtZywhPk="
  },
  "registry": "npm",
  "hash": "5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9"
}