{
  "name": "opn",
  "version": "1.0.2",
  "description": "A better node-open. Opens stuff like websites, files, executables. Cross-platform.",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/sindresorhus/opn.git"
  },
  "bin": {
    "opn": "cli.js"
  },
  "author": {
    "name": "Sindre Sorhus",
    "email": "sindresorhus@gmail.com",
    "url": "http://sindresorhus.com"
  },
  "engines": {
    "node": ">=0.10.0"
  },
  "scripts": {
    "test": "mocha"
  },
  "files": [
    "cli.js",
    "index.js",
    "xdg-open"
  ],
  "keywords": [
    "cli",
    "bin",
    "app",
    "open",
    "opn",
    "launch",
    "start",
    "xdg-open",
    "default",
    "cmd",
    "browser",
    "editor",
    "executable"
  ],
  "devDependencies": {
    "mocha": "*"
  },
  "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- Includes the latest [xdg-open script](http://portland.freedesktop.org/download/)\n- Fixes most of the `node-open` issues\n\n\n## Install\n\n```sh\n$ npm install --save opn\n```\n\n\n## Usage\n\n```js\nvar opn = require('opn');\n\nopn('http://sindresorhus.com');\n// opens that url in the default browser\n\nopn('http://sindresorhus.com', 'firefox');\n// you can also specify the app to open in\n\nopn('unicorn.png');\n// opens the image in the default image viewer\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, [app, callback])\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#### app\n\nType: `string`\n\nSpecify the app to open the `target` with.\n\nThe app name is platform dependent. Don't hard code it in reusable modules.\n\n#### callback(err)\n\nType: `function`\n\nExecutes when the opened app exits.\n\nOn Windows you have to explicitly specify an app for it to be able to wait.\n\n\n## CLI\n\nYou can also use it as a CLI app by installing it globally:\n\n```sh\n$ npm install --global opn\n```\n\n```sh\n$ opn --help\n\nUsage\n  $ opn <file|url> [app]\n\nExample\n  $ opn http://sindresorhus.com\n  $ opn http://sindresorhus.com firefox\n  $ opn unicorn.png\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
  "readmeFilename": "readme.md",
  "bugs": {
    "url": "https://github.com/sindresorhus/opn/issues"
  },
  "homepage": "https://github.com/sindresorhus/opn#readme",
  "_id": "opn@1.0.2",
  "_shasum": "b909643346d00a1abc977a8b96f3ce3c53d5cf5f",
  "_resolved": "https://registry.npmjs.org/opn/-/opn-1.0.2.tgz",
  "_from": "opn@>=1.0.1 <2.0.0"
}
