{"_id":"@cancetin/grunt-proxy","_rev":"3-5d87550a5c6dc6e976b7d46fca147a28","name":"@cancetin/grunt-proxy","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.4":{"name":"@cancetin/grunt-proxy","description":"Start proxy server","version":"0.0.4","repository":{"type":"git","url":"git+https://github.com/tutukin/grunt-proxy.git"},"author":{"name":"Andrei V. Toutoukine","email":"tut@isuct.ru"},"contributors":[{"name":"Mark Smith","url":"https://github.com/RallySoftware/grunt-proxy"}],"licenses":[{"type":"MIT","url":"/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"http-proxy":"1.17.0"},"devDependencies":{"grunt-contrib-jshint":"0.3.x","grunt-contrib-clean":"0.4.x","grunt-contrib-connect":"0.2.x","grunt":"0.4.x","grunt-mocha-test":"~0.6.3","expect.js":"0.2.x","mock":"0.1.x","sinon":"1.6.x","grunt-contrib-watch":"0.3.x"},"keywords":["gruntplugin","proxy"],"bugs":{"url":"https://github.com/tutukin/grunt-proxy/issues"},"homepage":"https://github.com/tutukin/grunt-proxy#readme","directories":{"test":"test"},"license":"ISC","gitHead":"8a6e77cc23a77414bc41454929ffa0fc07964008","_id":"@cancetin/grunt-proxy@0.0.4","_npmVersion":"6.4.1","_nodeVersion":"8.9.1","_npmUser":{"name":"theshiver","email":"theshiver@gmail.com"},"dist":{"integrity":"sha512-gJxms1y0ZsnSXkNyIkn314Gx2v7NQc3S+1/xaHW0PuElzaghPa2RmqvBSajIFkHmcls9LwWMKykefUJnIXyvsw==","shasum":"2a67101afb866cc46e695215f9f01828c8c74bc7","tarball":"https://registry.npmjs.org/@cancetin/grunt-proxy/-/grunt-proxy-0.0.4.tgz","fileCount":16,"unpackedSize":78633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/QLYCRA9TVsSAnZWagAAAYMP/0iAtRFUWf/YZtRXEP9v\nGXBo3+EusB0SDz5eWkbH3i362fR13NT9+NUjiwuGRPRL9HTPp7KGgMbdGw61\nNuVFD6D9b1JPEh22COEVX+LRDE2pptF1vtCZwTOFB+f4SQx980BqYTWU+oK3\nvNdIVSCRA5osuAnK9NsUaZ5dYQt1JLIFPEjxWW0urweoW05Kjy5rudV1vMv6\n6VJRyPFFotmCP5sQ4kKLZyUheEjP9/X8PAZHsNYa/kPMDxzcdfLAAM8gVmR1\nnX8Q2apoouJAYFdb8SyzrFuDpgXrgmJHy3VGGrQaePgvkiAFXCJSpGFZhA0q\n2H13WGziPmLgcux2RC8GQqkiDfjbCRunxIaIYjW4x/RMTjh5eUhhuvTjpulf\nxU6r0PmsCI8E5pS2ixDb5bJIM6BO6OB5RKnA90Z26SBPcY6MZ449K9loG0Zd\nG34SmsKen9LxdRoJp2PCov4mQrmqvOm6KCIEpmtfLCW16jN+KzuZ/sek6LZt\nASVoVjhpyoshU9OTwA34hP/fURpbP+Zwxfx2U9T4RkfGRiFbvyr9HmGQbt5z\ni/4sz13nWED12UZnN8P08zPsshvzthDlAX0BDk15IY7HEB14JXu7yOsJxvU9\nbAL1oBRfBpREHGd5pshuqWcsn/X430GLZSgu+bZK4lLDoPYscEp3DQ4Wqsty\nZmpA\r\n=aCiR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICWsv/DyDjNqkFXnTXsorA6Bkxp/2YfeO49gfxCTKSCNAiEAsoZMFYBLUxs4M7I6eA8mdOo3L1G6FoRaLSxRwYWznyM="}]},"maintainers":[{"name":"theshiver","email":"theshiver@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grunt-proxy_0.0.4_1543307991707_0.05838642370559888"},"_hasShrinkwrap":false},"0.0.5":{"name":"@cancetin/grunt-proxy","description":"Start proxy server","version":"0.0.5","repository":{"type":"git","url":"git+https://github.com/theshiver/grunt-proxy.git"},"author":{"name":"Andrei V. Toutoukine","email":"tut@isuct.ru"},"contributors":[{"name":"can çetin"}],"licenses":[{"type":"MIT","url":"/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"http-proxy":"1.18.1"},"devDependencies":{"grunt-contrib-jshint":"0.3.x","grunt-contrib-clean":"0.4.x","grunt-contrib-connect":"0.2.x","grunt":"0.4.x","grunt-mocha-test":"~0.6.3","expect.js":"0.2.x","mock":"0.1.x","sinon":"1.6.x","grunt-contrib-watch":"0.3.x"},"keywords":["gruntplugin","proxy"],"bugs":{"url":"https://github.com/tutukin/grunt-proxy/issues"},"homepage":"https://github.com/tutukin/grunt-proxy#readme","directories":{"test":"test"},"license":"ISC","gitHead":"7f683ad931ec6741f47fbdf3a5e4acc96058524f","_id":"@cancetin/grunt-proxy@0.0.5","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-/Xk9TOQen+KhDE4y8ARYOtZrQjhBCV5csnCDJpCZCtysZoIhqn/Uft95s/4bJI4ONgSbtbaUiN35qRNk5MM22A==","shasum":"c21e9677fc583ec60f28391783d7957ae0e9a2e9","tarball":"https://registry.npmjs.org/@cancetin/grunt-proxy/-/grunt-proxy-0.0.5.tgz","fileCount":16,"unpackedSize":78608,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhza1LCRA9TVsSAnZWagAApbYP/j2uuAPo7ZgryWkx4pd8\nuKIKWpy1S6EMXj0g3jM2OBy+Gy/1HItQxy9dh+N54zF9zNHN8GB9knAe1+ld\n1fjGo+f20kuD0VWR2KgFcw2chDJRtlTy8ynt+CwpScQzK7+UyzDvJ9swtQI0\n55oyTmk2wl4XUV77p/xaTwSPH01mAq9f/R0SFuWlqcs9iIWdKsqmzSRIX32v\nmk7D3KviaXUet457Mgtpt9y2gqm+OXVE7C/2ib3QOdHkxdBSCWHFG3Jo6rwD\n1rBmHhKhNOJ9Lxt9PjATmfLKk7Twx10SU2QhNQ5E5pnXdeAJBxRyEvCue+ra\nLxK32mNPTM4rz2gIAxOPMZoemjShpMlDxRyg6+sW58PJYChdTY/tQ3eJslgq\nbxny8MR8SLU4zCOztdVT3vTXg9CWa5/A3tuP1Dn6y/UjuA4pNI8x4yB0//zW\nA8UTk25Hje0p5GUIvPlITiahOCEaexMr4H1Ed5B8yNZsuQgTC1rxh1r8unBS\neUE8cXHp+u+eLagLwsqkcv5WELQua5s2VJ+vXqab72DBU9hnnOJSy///FUq8\n7QphsCCaLhXob7Bc0TWvIEoN0bgVJxVUmTJ6xNyjFODDparKmisAIGuGe9F8\nqi7v2Ar2t2zXLogQmmw72uA8COUdCJKgKm390DSb4y8/YflfEaSQ7NIgThVc\nrb/D\r\n=MUtv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6bS+32+zdRUfTl/t5ITiXbhp4/dEoQ3KPL7cyZOWlwAiEA1psjk6L1bsUXr8X1Wo4ym9i+05qbxKrnWLhVfsHwclA="}]},"_npmUser":{"name":"theshiver","email":"theshiver@gmail.com"},"maintainers":[{"name":"theshiver","email":"theshiver@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grunt-proxy_0.0.5_1636638874996_0.43787684531502347"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-27T08:39:51.552Z","0.0.4":"2018-11-27T08:39:52.011Z","modified":"2022-04-04T21:36:06.846Z","0.0.5":"2021-11-11T13:54:35.122Z"},"maintainers":[{"name":"theshiver","email":"theshiver@gmail.com"}],"description":"Start proxy server","homepage":"https://github.com/tutukin/grunt-proxy#readme","keywords":["gruntplugin","proxy"],"repository":{"type":"git","url":"git+https://github.com/theshiver/grunt-proxy.git"},"contributors":[{"name":"can çetin"}],"author":{"name":"Andrei V. Toutoukine","email":"tut@isuct.ru"},"bugs":{"url":"https://github.com/tutukin/grunt-proxy/issues"},"license":"ISC","readme":"# grunt-proxy\n\nStart proxy server using [http-proxy][].\n\n## Getting Started\n_If you haven't used [grunt][] before, be sure to check out the [Getting Started][] guide._\n\nFrom the same directory as your project's [Gruntfile][Getting Started] and [package.json][],\ninstall this plugin with the following command:\n\n```bash\nnpm install grunt-proxy --save-dev\n```\n\nOnce that's done, add this line to your project's Gruntfile:\n\n```js\ngrunt.loadNpmTasks('grunt-proxy');\n```\n\nIf the plugin has been installed correctly, running `grunt --help`\nat the command line should list the newly-installed plugin's task\nor tasks. In addition, the plugin should be listed in package.json\nas a `devDependency`, which ensures that it will be installed whenever\nthe `npm install` command is run.\n\n[grunt]: http://gruntjs.com/\n[Getting Started]: https://github.com/gruntjs/grunt/blob/devel/docs/getting_started.md\n[package.json]: https://npmjs.org/doc/json.html\n[http-proxy]: https://npmjs.org/package/http-proxy\n\n## The \"proxy\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `proxy` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  proxy: {\n    proxy1 : {\n    \toptions : {\n    \t\tport : 8050,\t\t\t// start proxy server, listening to the port 8050\n\t\t\thost : 'localhost',\t\t\t// bind proxy server to 'localhost' interface\n\t\t\ttarget : {\t\t\t\t// make it forward all the requests to localhost:8011\n\t\t\t\thost: 'localhost',\n\t\t\t\tport: 8011\n\t\t\t}\n\t\t}\n    },\n    proxy2 : {\n    \toptions : { // start proxy server, listening to the default port 9000\n\t\t\trouter : {\t\t// make it forward requests according to this table\n\t\t\t\t'localhost/secure'    : 'https://mysecure.server.com:443/subpath',\n                'localhost/insecure/' : 'http://127.0.0.1:3000'\n\t\t\t},\n\t\t\thttps  : {\n\t\t\t\tkey   : fs.readFileSync( path.join(proxyKeysDir, 'server.key'), 'utf8' ),\n                cert  : fs.readFileSync( path.join(proxyKeysDir, 'server.crt'), 'utf8' )\n\t\t\t},\n\t\t\tchangeOrigin : true\n\t\t}\n    }\n  },\n})\n```\n\n### Options\n\nThe simple rule is: all options except for `options.port` and `options.host` are passed to\nhttp-proxy's `proxy.createServer(options)` method. The `options.port` and `options.host` are\nremoved from `options` and are passed to the server's `server.listen(port, host)` method.\n\n#### Listener options\n\n##### options.port\nType: `Integer`\nDefault value: 9000\n\nA port number to which the proxy server should listen to.\n\n##### options.host\nType: `String`\nDefault value: none\n\nAn optional hostname at which the proxy accepts connections.\n\n#### Proxy options\n\nAll options except for the abovementioned are passed to http-proxy's \n`proxy.createServer(options)` method. Please refer to [http-proxy][]\ndocumentation.\n\nNote, if `options.router` is given, `options.target` is ignored.\n\n### Usage Examples\n\nSee overview section above and tests\n\n### Tests\n\ngrunt test\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style.\nAdd unit tests for any new or changed functionality. Lint and test your code using [grunt][].\n\n## Release History\nSeptember 10, 2013. **v. 0.0.3**\n\t\n\t- support for additional config options (`https`, `changeOrigin` etc.) options\n\t- by default proxy listens to the port 9000\n\t\nApril 2, 2013. **v. 0.0.2**\n\n\t- add `host` option, that is passed to proxy.listen() method\n\t- some refactorings\n\t- unit tests\n\nJanuary 5, 2013. **v. 0.0.1**\n\n\t- main functionality\n","readmeFilename":"README.md"}