{"_id":"grunt-open","_rev":"36-7fa04ee030fdbdebd3f2a17967eb71ef","name":"grunt-open","description":"Open urls and files from a grunt task","dist-tags":{"latest":"0.2.4"},"versions":{"0.1.0":{"name":"grunt-open","description":"Open urls and files from a grunt task","version":"0.1.0","homepage":"https://github.com/onehealth/grunt-open","author":{"name":"Jarrod Overson","email":"jsoverson@gmail.com","url":"http://jarrodoverson.com/"},"repository":{"type":"git","url":"git://github.com/onehealth/grunt-open.git"},"bugs":{"url":"https://github.com/onehealth/grunt-open/issues"},"licenses":[{"type":"MIT","url":"https://github.com/onehealth/grunt-open/blob/master/LICENSE"}],"main":"Gruntfile.js","bin":{"grunt-open":"bin/grunt-open"},"engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"dependencies":{"grunt":"*","open":"0.0.2"},"devDependencies":{"grunt":"~0.4.0a"},"keywords":["gruntplugin","open","url","file"],"_npmUser":{"name":"jsoverson","email":"jsoverson@gmail.com"},"_id":"grunt-open@0.1.0","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.8.7","_defaultsLoaded":true,"dist":{"shasum":"f6fce205d5ab13e6f7e40f684176db1a90c493b6","tarball":"https://registry.npmjs.org/grunt-open/-/grunt-open-0.1.0.tgz","integrity":"sha512-C6FDtwlnhNWdWEH/HNKIFWp4FWx100K7mTWnMcXOQ8NqMyhi/i116t3zLOrvnutbk8+kcE18Eo1KxtBEzyZTHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzHgOfORyk7YvbsXWI5LAo5v5L4ACpD0iLg/3heQP9WQIgTjf7pvDbQcMnyP6bPPC5IZu4TJqWiNIwcWVP1vLCWTY="}]},"maintainers":[{"name":"jsoverson","email":"jsoverson@gmail.com"}],"directories":{}},"0.2.0":{"name":"grunt-open","description":"Open urls and files from a grunt task","version":"0.2.0","homepage":"https://github.com/onehealth/grunt-open","author":{"name":"Jarrod Overson","email":"jsoverson@gmail.com","url":"http://jarrodoverson.com/"},"repository":{"type":"git","url":"git://github.com/onehealth/grunt-open.git"},"bugs":{"url":"https://github.com/onehealth/grunt-open/issues"},"licenses":[{"type":"MIT","url":"https://github.com/onehealth/grunt-open/blob/master/LICENSE"}],"main":"Gruntfile.js","bin":{"grunt-open":"bin/grunt-open"},"engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"dependencies":{"open":"0.0.2"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.1.1"},"keywords":["gruntplugin","open","url","file"],"_id":"grunt-open@0.2.0","dist":{"shasum":"37f0ce5717f3125746d8b1b1e6041a33a592c4f3","tarball":"https://registry.npmjs.org/grunt-open/-/grunt-open-0.2.0.tgz","integrity":"sha512-EN2KRtY0TH5K6jt/OtPUxsT/S8aiqaYj3yHWznK2yX3Hx5NM4jyFOwzOhYOh9+43vGxliPXXfWELB5/vKFhQ0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf2B9Jky2/dwXmRrtxAZc06bJcUE+v2tPaMIiHqYgUjgIgbd0HJ7RUpN/HNCMcS/vgSdSRMsMDIKNtTIP98q/Edg8="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"jsoverson","email":"jsoverson@gmail.com"},"maintainers":[{"name":"jsoverson","email":"jsoverson@gmail.com"}],"directories":{}},"0.2.1":{"name":"grunt-open","description":"Open urls and files from a grunt task","version":"0.2.1","homepage":"https://github.com/onehealth/grunt-open","author":{"name":"Jarrod Overson","email":"jsoverson@gmail.com","url":"http://jarrodoverson.com/"},"repository":{"type":"git","url":"git://github.com/onehealth/grunt-open.git"},"bugs":{"url":"https://github.com/onehealth/grunt-open/issues"},"licenses":[{"type":"MIT","url":"https://github.com/onehealth/grunt-open/blob/master/LICENSE"}],"main":"Gruntfile.js","bin":{"grunt-open":"bin/grunt-open"},"engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"dependencies":{"open":"~0.0.2"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.1.1"},"keywords":["gruntplugin","open","url","file"],"_id":"grunt-open@0.2.1","dist":{"shasum":"53c8683dc1ca2f8b6d4cebfc55e6ca0afb2901a0","tarball":"https://registry.npmjs.org/grunt-open/-/grunt-open-0.2.1.tgz","integrity":"sha512-uL3SLPfoh/wwC7gtMhIGjd9qf4F1pY6skMO3e75vH+iC8IOubPq9Yv+Pfz5mwVoykqMEJVTepGlW8DdN4wwNyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF69wWEYV1oW/fHTqGDMR3ghN55vbmzQs3lX+C2CcefiAiBjxxu8W/E3AVn8+Fb9M+aaD5280wbIsrLq4PGAVKHpnQ=="}]},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"jsoverson","email":"jsoverson@gmail.com"},"maintainers":[{"name":"jsoverson","email":"jsoverson@gmail.com"}],"directories":{}},"0.2.2":{"name":"grunt-open","description":"Open urls and files from a grunt task","version":"0.2.2","homepage":"https://github.com/onehealth/grunt-open","author":{"name":"Jarrod Overson","email":"jsoverson@gmail.com","url":"http://jarrodoverson.com/"},"repository":{"type":"git","url":"git://github.com/onehealth/grunt-open.git"},"bugs":{"url":"https://github.com/onehealth/grunt-open/issues"},"licenses":[{"type":"MIT","url":"https://github.com/onehealth/grunt-open/blob/master/LICENSE"}],"main":"Gruntfile.js","bin":{"grunt-open":"bin/grunt-open"},"engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"dependencies":{"open":"~0.0.4"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.1.1"},"keywords":["gruntplugin","open","url","file"],"_id":"grunt-open@0.2.2","dist":{"shasum":"a9d43e6d1533dd33766754f941d01833fe03e3c8","tarball":"https://registry.npmjs.org/grunt-open/-/grunt-open-0.2.2.tgz","integrity":"sha512-pC4FqmFogR0tiqDVWsgfPbUtkmdzqzzWJP8fOzBWQqRFD4JI3c0ItY2xdQ9QkAzZ4cTv5Azfl6OSXkazi4apEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1ePZICJWUP3j8Ocexk8auhkXkTeESK004wV/MC7VBVAiEAj2whWNoXXwhvkAhNm2/8c2DsOIhmxmfUzopC+AmWsoo="}]},"_from":".","_npmVersion":"1.3.7","_npmUser":{"name":"jsoverson","email":"jsoverson@gmail.com"},"maintainers":[{"name":"jsoverson","email":"jsoverson@gmail.com"}],"directories":{}},"0.2.3":{"name":"grunt-open","description":"Open urls and files from a grunt task","version":"0.2.3","homepage":"https://github.com/onehealth/grunt-open","author":{"name":"Jarrod Overson","email":"jsoverson@gmail.com","url":"http://jarrodoverson.com/"},"repository":{"type":"git","url":"git://github.com/onehealth/grunt-open.git"},"bugs":{"url":"https://github.com/onehealth/grunt-open/issues"},"licenses":[{"type":"MIT","url":"https://github.com/onehealth/grunt-open/blob/master/LICENSE"}],"main":"Gruntfile.js","bin":{"grunt-open":"bin/grunt-open"},"engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"dependencies":{"open":"~0.0.4"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.6.4"},"keywords":["gruntplugin","open","url","file"],"_id":"grunt-open@0.2.3","dist":{"shasum":"145ac45026a57fcfaa433ffd7398ae46d2bd3957","tarball":"https://registry.npmjs.org/grunt-open/-/grunt-open-0.2.3.tgz","integrity":"sha512-2NPq6AuFu87lrlkCftBXPsxNER7kwxhydsNwKrGd1le5lcX5c1Iak6AU0m/plViyACh3AAi3voP4CeeJInJEwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBx9TEadhhmDK7MyvJlR6HV8Gupv2seePoJhZMUMiSQaAiEA6aYx4ckdLGzOgQyYs4BmlFGtZ73Xvz62gvtn4gonBEU="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"jsoverson","email":"jsoverson@gmail.com"},"maintainers":[{"name":"jsoverson","email":"jsoverson@gmail.com"}],"directories":{}},"0.2.4":{"name":"grunt-open","description":"Open urls and files from a grunt task","version":"0.2.4","homepage":"https://github.com/onehealth/grunt-open","author":{"name":"Jarrod Overson","email":"jsoverson@gmail.com","url":"http://jarrodoverson.com/"},"repository":{"type":"git","url":"git://github.com/onehealth/grunt-open.git"},"bugs":{"url":"https://github.com/onehealth/grunt-open/issues"},"licenses":[{"type":"MIT","url":"https://github.com/onehealth/grunt-open/blob/master/LICENSE"}],"main":"Gruntfile.js","bin":{"grunt-open":"bin/grunt-open"},"engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt"},"dependencies":{"opn":"^5.4.0"},"devDependencies":{"grunt":"^1.0.3","grunt-cli":"^1.3.2","grunt-contrib-jshint":"^2.0.0"},"keywords":["gruntplugin","open","url","file"],"gitHead":"08570ad796165dcdf4f92485b7b6bf37a2b0a8df","_id":"grunt-open@0.2.4","_npmVersion":"6.5.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jsoverson","email":"jsoverson@gmail.com"},"dist":{"integrity":"sha512-3VxPWr6zZBVvEPtCMkjVtP30saT/VDIeUE8nWs8Y2tNgUPROKwWoWFwo1AUTNRM5oufJ2PL1eMVaL7Byv4NhQg==","shasum":"dd4ff767a04b2ff706d7333696f40ecb0869d218","tarball":"https://registry.npmjs.org/grunt-open/-/grunt-open-0.2.4.tgz","fileCount":7,"unpackedSize":7633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcibNrCRA9TVsSAnZWagAAQh0QAJSPKBkU6s3cr/zasgSA\nLlHSCI9i1u48pTj8bPZV+FVAwfoqPz3LyZJg0rfaUDpS1MRS7o+m25KjfjxO\nK8MY5P6UMLmMswnmM3nKGYrlqV8v+fTGUrY29GXDzP4uvH/N0QLxoUCn9Mu7\nUpxaKXDCilsR/Y8ECcaqHNcJHC7x0wxPvzqA1o75kZpNmIx1EHzfeQHC3qwh\nBudxymcwuTQCife5dPmGmXg2rTYawVBOfetwixHjDvZMGlEwVR7jIOK703zz\nql14AOzQxkYgjfkQlipUk2DL2NmFN1rroYgf3xUJk6d8PI6oHMNNfDs5Rocj\na/Df/JvEGOi+pRkdwPNRnQ6ntkCtw7pRBdIw7NcPh0wwS9/C7bSDFNtecmzO\n7GMbi4tBb6MZFFTCphJ6BxA/KOLxuWyOf5yKF5NsFxjVjJjvOuC28SlFxaiR\n3zNXnZ4cNhGjCzE+IhT2J0t7/SnjoaZMGE4ljT2TFMa6DTPMF0vDw20nAzwb\ndH7QQIKwbSffH7YrhNnpjZvKjEyu6K8UEwv3hwarXzXVkQRGkNwGoNL507BD\nea9sG3os443yQITFmTblT12qt2VTyIlPQ0z/ncExUGgVO88LlZBAfC/EJAx0\nuJHOdQKAvZMPYz+k0JWSWMUC4MvsnRqAdB/qXO1zMCOD2v7Pr90mVHYLaIR5\nKMD1\r\n=g2HW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB2DRY9rkjkDNSXj+N5v2Eyv/IXfE57yU8TcVGDqjZrpAiBolx8Tcei1Byz1oVQvgaThMdBTAtD1XNtGIN4r4FyLhg=="}]},"maintainers":[{"name":"jsoverson","email":"jsoverson@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grunt-open_0.2.4_1552528234867_0.6686903949246381"},"_hasShrinkwrap":false}},"readme":"# grunt-open\n\nOpen urls and files from a grunt task\n\n## Installation\n\nInstall using npm in the root of your project directory (where your package.json and Gruntfile.js are located)\n\n```bash\nnpm install --save-dev grunt-open\n```\n\n## Usage\n\nThis is used as part of your grunt tasks, between the `server` and `watch` tasks\n\n```js\ngrunt.registerTask('default', ['server', 'open', 'watch']);\n```\n\nYou can specify different configurations so that you can set up task chains (see the configuration below for this example's config)\n\n```js\ngrunt.registerTask('dev', ['server', 'open:dev', 'watch']);\ngrunt.registerTask('build', ['build', 'server', 'open:build', 'watch:build');\n```\n\n## Gruntfile Configuration\n\nThis is a very simple task and takes two configuration parameters, `path` (required) and `app` (optional). If `app` is not specified, the default system browser will be launched\n\n```js\ngrunt.initConfig({\n  open : {\n    dev : {\n      path: 'http://127.0.0.1:8888/src',\n      app: 'Google Chrome'\n    },\n    build : {\n      path : 'http://google.com/',\n      app: 'Firefox'\n    },\n    file : {\n      path : '/etc/hosts'\n    },\n    custom: {\n      path : function () {\n        return grunt.option('path');\n      } \n    }\n  }\n})\n\ngrunt.loadNpmTasks('grunt-open');\n\n```\n\n## Options\n\n#### openOn\nType: `String`\n\nWhile it may not be common, you may want to delay the opening of your `path` at a later time of the grunt process. The option `openOn` allows you to define an event (coming through from [grunt.event](http://gruntjs.com/api/grunt.event)) that would signal the expected triggering of `open`. Example:\n\n```js\ngrunt.initConfig({\n  open: {\n    delayed: {\n      path: 'http://localhost:3000',\n      app: 'Google Chrome',\n      options: {\n        openOn: 'serverListening'\n      }\n    }\n  }\n});\n\ngrunt.registerTask('server', function () {\n  var server = require('myServer');\n  server.listen(3000, function (err) {\n    if (!err) {\n      grunt.log.writeln('Server started');\n      grunt.event.emit('serverListening'); // triggers open:delayed\n    }\n  });\n})\n```\n\n#### delay\nType : `Number`\n\nSet a delay for the open. *Note:* This task moves on immediately. If this is the last task in your chain you run the\nrisk of node exiting before your open is called.\n\n[grunt]: https://github.com/gruntjs/grunt\n[getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt][grunt].\n\n## Release History\n\n - 0.2.3 merged support for functions in config, added delay, merged openOn\n - 0.2.2 added `app` parameter.\n - 0.2.0 grunt 0.4.0 support, added and preferring `path` parameter.\n - 0.1.0 initial release\n\n## License\n\nMIT License, see LICENSE for details.\n","maintainers":[{"name":"jsoverson","email":"jsoverson@gmail.com"}],"time":{"modified":"2022-06-18T15:37:55.624Z","created":"2012-10-03T18:23:07.054Z","0.1.0":"2012-10-03T18:23:08.180Z","0.2.0":"2013-02-18T18:17:54.637Z","0.2.1":"2013-07-12T18:08:29.270Z","0.2.2":"2013-08-09T18:57:20.923Z","0.2.3":"2014-01-17T17:37:33.394Z","0.2.4":"2019-03-14T01:50:35.000Z"},"author":{"name":"Jarrod Overson","email":"jsoverson@gmail.com","url":"http://jarrodoverson.com/"},"repository":{"type":"git","url":"git://github.com/onehealth/grunt-open.git"},"users":{"gableroux":true,"ronchung":true,"piotrlewandowski":true,"yoksel":true,"raksa":true,"sputnikenmeister":true,"gnhaku":true,"ahsanshafiq":true,"srinivas543":true,"maxz":true,"asadm2706":true},"readmeFilename":"README.md","homepage":"https://github.com/onehealth/grunt-open","keywords":["gruntplugin","open","url","file"],"bugs":{"url":"https://github.com/onehealth/grunt-open/issues"}}