126 lines
4.9 KiB
JSON
126 lines
4.9 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "opn@^4.0.2",
|
|
"scope": null,
|
|
"escapedName": "opn",
|
|
"name": "opn",
|
|
"rawSpec": "^4.0.2",
|
|
"spec": ">=4.0.2 <5.0.0",
|
|
"type": "range"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl"
|
|
]
|
|
],
|
|
"_from": "opn@>=4.0.2 <5.0.0",
|
|
"_id": "opn@4.0.2",
|
|
"_inCache": true,
|
|
"_location": "/opn",
|
|
"_nodeVersion": "4.4.2",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-12-west.internal.npmjs.com",
|
|
"tmp": "tmp/opn-4.0.2.tgz_1463477356148_0.1645404922310263"
|
|
},
|
|
"_npmUser": {
|
|
"name": "sindresorhus",
|
|
"email": "sindresorhus@gmail.com"
|
|
},
|
|
"_npmVersion": "3.9.0",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "opn@^4.0.2",
|
|
"scope": null,
|
|
"escapedName": "opn",
|
|
"name": "opn",
|
|
"rawSpec": "^4.0.2",
|
|
"spec": ">=4.0.2 <5.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/xdl"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/opn/-/opn-4.0.2.tgz",
|
|
"_shasum": "7abc22e644dff63b0a96d5ab7f2790c0f01abc95",
|
|
"_shrinkwrap": null,
|
|
"_spec": "opn@^4.0.2",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl",
|
|
"author": {
|
|
"name": "Sindre Sorhus",
|
|
"email": "sindresorhus@gmail.com",
|
|
"url": "sindresorhus.com"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/sindresorhus/opn/issues"
|
|
},
|
|
"dependencies": {
|
|
"object-assign": "^4.0.1",
|
|
"pinkie-promise": "^2.0.0"
|
|
},
|
|
"description": "A better node-open. Opens stuff like websites, files, executables. Cross-platform.",
|
|
"devDependencies": {
|
|
"ava": "*",
|
|
"xo": "*"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "7abc22e644dff63b0a96d5ab7f2790c0f01abc95",
|
|
"tarball": "https://registry.npmjs.org/opn/-/opn-4.0.2.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.10.0"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"xdg-open"
|
|
],
|
|
"gitHead": "b56b0e981ee377d3b04c57a4e6748ad2793ada17",
|
|
"homepage": "https://github.com/sindresorhus/opn#readme",
|
|
"keywords": [
|
|
"app",
|
|
"open",
|
|
"opn",
|
|
"opener",
|
|
"opens",
|
|
"launch",
|
|
"start",
|
|
"xdg-open",
|
|
"xdg",
|
|
"default",
|
|
"cmd",
|
|
"browser",
|
|
"editor",
|
|
"executable",
|
|
"exe",
|
|
"url",
|
|
"urls",
|
|
"arguments",
|
|
"args",
|
|
"spawn",
|
|
"exec",
|
|
"child",
|
|
"process",
|
|
"website",
|
|
"file"
|
|
],
|
|
"license": "MIT",
|
|
"maintainers": [
|
|
{
|
|
"name": "sindresorhus",
|
|
"email": "sindresorhus@gmail.com"
|
|
}
|
|
],
|
|
"name": "opn",
|
|
"optionalDependencies": {},
|
|
"readme": "# opn\n\n> A better [node-open](https://github.com/pwnall/node-open). Opens stuff like websites, files, executables. Cross-platform.\n\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 open `node-open` issues\n- Includes the latest [`xdg-open` script](http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=c55122295c2a480fa721a9614f0e2d42b2949c18) for Linux\n\n\n## Install\n\n```\n$ npm install --save opn\n```\n\n\n## Usage\n\n```js\nconst opn = require('opn');\n\n// opens the image in the default image viewer\nopn('unicorn.png').then(() => {\n\t// image viewer closed\n});\n\n// opens the url in the default browser\nopn('http://sindresorhus.com');\n\n// specify the app to open in\nopn('http://sindresorhus.com', {app: 'firefox'});\n\n// specify app arguments\nopn('http://sindresorhus.com', {app: ['google chrome', '--incognito']});\n```\n\n\n## API\n\nUses the command `open` on OS X, `start` on Windows and `xdg-open` on other platforms.\n\n### opn(target, [options])\n\nReturns a promise for the [spawned child process](https://nodejs.org/api/child_process.html#child_process_class_childprocess). You'd 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\n*Required* \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. Eg. URLs opens in your default browser.\n\n#### options\n\nType: `object`\n\n##### wait\n\nType: `boolean` \nDefault: `true`\n\nWait for the opened app to exit before calling the `callback`. If `false` it's called immediately when opening the app.\n\nOn Windows you have to explicitly specify an app for it to be able to wait.\n\n##### app\n\nType: `string`, `array`\n\nSpecify the app to open the `target` with, or an array with the app and app arguments.\n\nThe app name is platform dependent. Don't hard code it in reusable modules. Eg. Chrome is `google chrome` on OS X, `google-chrome` on Linux and `chrome` on Windows.\n\n\n## Related\n\n- [opn-cli](https://github.com/sindresorhus/opn-cli) - CLI for this module\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
|
|
"readmeFilename": "readme.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/sindresorhus/opn.git"
|
|
},
|
|
"scripts": {
|
|
"test": "xo && ava"
|
|
},
|
|
"version": "4.0.2"
|
|
}
|