{"_id":"watch-connect","_rev":"28-9a22434e6abd44b015f64ff7f5040423","name":"watch-connect","description":"A connect/express middleware that force browsers to reload when the server detects file changes.","dist-tags":{"latest":"0.3.4"},"versions":{"0.1.0":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"watch-connect","description":"A connect middleware that force browsers to reload when the server detects file changes.","version":"0.1.0","repository":{"type":"git","url":"git://github.com/Filirom1/watch-connect.git"},"main":"reloadOnChange.js","dependencies":{"socket.io":"~0.9.6","mustache":"~0.4.0","underscore":"~1.3.3","watch":"~0.5.1"},"devDependencies":{"connect":"1.x"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"Filirom1","email":"filirom1@gmail.com"},"_id":"watch-connect@0.1.0","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18-pre","_defaultsLoaded":true,"dist":{"shasum":"d1a489f6ec1ef2fde83e2b349d6bbf9268a2619b","tarball":"https://registry.npmjs.org/watch-connect/-/watch-connect-0.1.0.tgz","integrity":"sha512-6UbB4bb51zoOPXiY5lV9FJG1/LAkftzyJ4ZekWbbC4R+ZDZIDImXDe5uVf2GYEQQOFb3ADHfPYwCi1+pZjUYiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqYa0F7ioXxEc+W0tr4mzwMZ7bKY7yDzwDLEhtLi3obQIhAIF77f1IXEbj7R6jkM+N7mtvR8yIq9jODYIFKyQJ3tCG"}]},"readme":"","maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"}],"directories":{}},"0.2.0":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"watch-connect","description":"A connect middleware that force browsers to reload when the server detects file changes.","version":"0.2.0","repository":{"type":"git","url":"git://github.com/Filirom1/watch-connect.git"},"main":"reloadOnChange.js","dependencies":{"socket.io":"~0.9.6","mustache":"~0.4.0","underscore":"~1.3.3","connect":"1.x","fs-watch-tree":"~0.2.1"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"Filirom1","email":"filirom1@gmail.com"},"_id":"watch-connect@0.2.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18-pre","_defaultsLoaded":true,"dist":{"shasum":"c677444340ead88166d8efd8facf8b5a180e6968","tarball":"https://registry.npmjs.org/watch-connect/-/watch-connect-0.2.0.tgz","integrity":"sha512-YsIoTQ1mnYuXkCQFXqk8Debbs5gTOCFJX/huNThl8AsxXspCz7vEc/WbEl8L/XLE+f0U3U25JYROtqJ0Cc02NA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA+jAarSC78nBFRdvOtEVlWEZNIDzQdUf8duph96EAyEAiEAkrqo5anFP6DXFr4ttvmf3ha3WA92z8URucgWcyEarfY="}]},"readme":"","maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"}],"directories":{}},"0.2.1":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"watch-connect","description":"A connect middleware that force browsers to reload when the server detects file changes.","version":"0.2.1","repository":{"type":"git","url":"git://github.com/Filirom1/watch-connect.git"},"main":"reloadOnChange.js","dependencies":{"socket.io":"~0.9.6","underscore":"~1.3.3","connect":"1.x","fs-watch-tree":"~0.2.1"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"watch-connect@0.2.1","dist":{"shasum":"8c51a1016213bcdc272840a16ade94a393110cea","tarball":"https://registry.npmjs.org/watch-connect/-/watch-connect-0.2.1.tgz","integrity":"sha512-hSBKqoATX50FRFnpYazn45ohzLQfMaGZaf3obxpk270pvDStPD+1sYxtxtju/Cr9CgsgjOIuJAl41jjEj5vqlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXQmS+QlYm4gtdRDOUnkgFynuDHF2vu5ToI8vL+LN0ZAIgJkblxDOfSjyW8WDcIDCMY9wdkVjn1xXwSp8keXHZTUo="}]},"readme":"","maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"}]},"0.2.2":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"watch-connect","description":"A connect middleware that force browsers to reload when the server detects file changes.","version":"0.2.2","repository":{"type":"git","url":"git://github.com/Filirom1/watch-connect.git"},"main":"reloadOnChange.js","dependencies":{"socket.io":"~0.9.6","fs-watch-tree":"~0.2.1"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"watch-connect@0.2.2","dist":{"shasum":"060129704573c7af7725e187f10d538d6d5b1df8","tarball":"https://registry.npmjs.org/watch-connect/-/watch-connect-0.2.2.tgz","integrity":"sha512-Ql9byJ3aMWisIYJJ1nCENpRX2BOiGgdUquqLQ4uPa955+UMIi9h2W9QCLdEZ0IZcn8wc9wy+zOqTPicp+xRvOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDftY7tB3zBYqa7wBMVLziGaU6YeKdtC0HaRdsdeU4NwQIhAISpWKobS2yxs/IzmmZASccmFsNCw0sz6l2E0edAhCSi"}]},"readme":"","maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"}]},"0.3.0":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"watch-connect","description":"A connect middleware that force browsers to reload when the server detects file changes.","version":"0.3.0","repository":{"type":"git","url":"git://github.com/Filirom1/watch-connect.git"},"main":"reloadOnChange.js","dependencies":{"socket.io":"~0.9.6","fs-watch-tree":"~0.2.1"},"optionalDependencies":{},"engines":{"node":"*"},"devDependencies":{"connect":"~1.9.2"},"_id":"watch-connect@0.3.0","dist":{"shasum":"0c4a7e8d2a36e67a59d7bbc9e2913a396d2fb74c","tarball":"https://registry.npmjs.org/watch-connect/-/watch-connect-0.3.0.tgz","integrity":"sha512-kdH7Z5xP/3LmHOiKnXQCrD8o7Y4Apa+ElTD8vFBKQLaeRXj4buaM+08ij8TXMlPOweeiLGEvQbMQBSqR9SxGXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIGEt5gXY/0soOUnbVrPqr+SYc5GTzsoZjcOz5ZQ2VJwIgePnKRBC4ns4xaHH5e9XeqFpCBMOtI+UJHoJm6V5PvfM="}]},"readme":"","maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"}]},"0.3.1":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"watch-connect","description":"A connect middleware that force browsers to reload when the server detects file changes.","version":"0.3.1","repository":{"type":"git","url":"git://github.com/Filirom1/watch-connect.git"},"main":"reloadOnChange.js","dependencies":{"socket.io":"~0.9.6","chokidar":"~0.4.0"},"optionalDependencies":{},"engines":{"node":"*"},"devDependencies":{"connect":"~1.9.2"},"readme":"","_id":"watch-connect@0.3.1","dist":{"shasum":"a7adc86b06cf4d0291d7bb8d9e83ba4aea2fb9eb","tarball":"https://registry.npmjs.org/watch-connect/-/watch-connect-0.3.1.tgz","integrity":"sha512-AjExjnpvBPA31qDGO8ssCXADTqtMRfFzSN2jxN+LVi8GOiJyJbWNS/dDU5C68okNuXWmsrwRMzGVXgJ12EgAkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRU/fpAp2fJfmtDIQWy8/CT2+fddfQ2EWxI3U5w7IcxAiEAq6h3T8xY5EgWvcrtVoDDZ1QyDWiKZryeH6QW7GmCMPc="}]},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"}]},"0.3.2":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"watch-connect","description":"A connect middleware that force browsers to reload when the server detects file changes.","version":"0.3.2","repository":{"type":"git","url":"git://github.com/Filirom1/watch-connect.git"},"main":"reloadOnChange.js","dependencies":{"socket.io":"~0.9.6","chokidar":"~0.4.0"},"optionalDependencies":{},"engines":{"node":"*"},"devDependencies":{"connect":"~1.9.2"},"readme":"# watch-connect\n\nA connect middleware that force browsers to reload when the server detects file changes.\n\nThe watch mode has been borrowed from [https://github.com/mklabs/mockerie](mockerie) by the genious [mklabs](https://github.com/mklabs).\n\n## Usage\n\n    var Path = require('path'),\n      connect = require('connect'),\n      reloadOnChange = require('watch-connect');\n\n    var path = Path.resolve('example/fixture');\n\n    var server = connect();\n    server.use(reloadOnChange(path, server, {verbose: true}));\n    server.use(connect.static(path));\n\n    server.listen(3000, function(){\n      console.log('listening on http://127.0.0.1:3000');\n    });\n\nNow open your browser on the URL `http://127.0.0.1:3000`.\n\nLook at the title color.\n\nNow change the color in `example/fixture/sub/folder/file.css`, and save your changes.\n\nOh look the browser was updated :)\n\n## Options\n\n * verbose: Defaults to false.  Chatty logging.\n * skipAdding: Defaults to false.  When set to true, the socket scripts will not be added to .html pages on their way through the middleware.  The assumption is that you would add them to your page(s) yourself.  This serves as a workaround for those who are not rendering .html pages directly, like express users who may be using jade templates.\n * exclude: an array of files that when changed should not cause a reload\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Filirom1\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"watch-connect@0.3.2","dist":{"shasum":"4ba3cb71385ef177a2e2bda21b6fbe02384e9e23","tarball":"https://registry.npmjs.org/watch-connect/-/watch-connect-0.3.2.tgz","integrity":"sha512-e5FoqPOTkbnAbYpRkwJhuweCNxYITeAKRyEONdYrkpNFBD/fC97hWTKb/Z7M5arIz4gTuv7D5V4HbgMVSuCE1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCv2sj4EkHpaN7T5GIZ2Ck5E+jmGMtbGQ5svriPqy2aPwIgTckS3GkU5ykmS3eFKW9vqHrRMULwX2pdcRoPQKc+rA8="}]},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"},{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.3.3":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"watch-connect","description":"A connect middleware that force browsers to reload when the server detects file changes.","version":"0.3.3","repository":{"type":"git","url":"git://github.com/Filirom1/watch-connect.git"},"main":"reloadOnChange.js","dependencies":{"socket.io":"~0.9.6","chokidar":"~0.4.0"},"optionalDependencies":{},"engines":{"node":"*"},"devDependencies":{"connect":"~1.9.2"},"keywords":["live","reload","livereload","connect","express"],"readme":"# watch-connect\n\nA connect/express middleware that force browsers to reload when the server detects file changes.\n\nThe watch mode has been borrowed from [https://github.com/mklabs/mockerie](mockerie) by the genious [mklabs](https://github.com/mklabs).\n\n## Usage\n\n    var Path = require('path'),\n      connect = require('connect'),\n      reloadOnChange = require('watch-connect');\n\n    var path = Path.resolve('example/fixture');\n\n    var server = connect();\n    var options = {watchdir:path, server:server, verbose: true};\n    server.use(reloadOnChange(options));\n    server.use(connect.static(path));\n\n    server.listen(3000, function(){\n      console.log('listening on http://127.0.0.1:3000');\n    });\n\nNow open your browser on the URL `http://127.0.0.1:3000`.\n\nLook at the title color.\n\nNow change the color in `example/fixture/sub/folder/file.css`, and save your changes.\n\nOh look the browser was updated :)\n\n## Options\n\n * `watchdir`: __Required__.  A path to the directory you want to watch, ideally the path to your public assets.  .html files inside this directory will have script tags inserted on their way through the connect middleware (unless `skipAdding` is set to `true`).  Those scripts facilitate the reload.\n * `server`: __Required__.  http server to hook our reload\n * `verbose`: Defaults to false.  Chatty logging.\n * `skipAdding`: Defaults to false.  When set to true, the socket scripts will not be added to .html pages on their way through the middleware.  The assumption is that you would add them to your page(s) yourself.  This serves as a workaround for those who are not rendering .html pages directly, like Express users who may be using Jade templates.\n * `exclude`: an array of _file regexs_ that when changed should not cause a reload.  By default, files containing `/.` (`like foo/.gitignore`) and `node_modules` will be ignored.\n * `additionaldirs`: an array of file paths to additional directories that you want to force a refresh of the browser.  No files inside this directory will not have the script tags inserted into them, these files simply trigger reloads.  Use this to, for example, watch your Jade templates, which typically live outside the directory structure of your public assets.\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Filirom1\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"watch-connect@0.3.3","dist":{"shasum":"ab7487382286021eedbdc1ece1821c2415b745f1","tarball":"https://registry.npmjs.org/watch-connect/-/watch-connect-0.3.3.tgz","integrity":"sha512-mBEmFbOGf5d6fGYGRyIfrCQ5Aq6LcTufTs1szb9ZRuf4WqKiCeibq9fnlu66Ig/279PZi09GOIxXfIh7NQnf4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUp43NcQ+b9v7WthmIXdSGC+SNVQRi8l+42lKOSwUZyAiEAoO+7BxA+5jdNoFMIEHmP/+syHvITpOmAuXaumn0k9L8="}]},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"},{"name":"dbashford","email":"dbashford@hotmail.com"}]},"0.3.4":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"watch-connect","description":"A connect/express middleware that force browsers to reload when the server detects file changes.","version":"0.3.4","repository":{"type":"git","url":"git://github.com/Filirom1/watch-connect.git"},"main":"reloadOnChange.js","dependencies":{"socket.io":"~0.9.6","chokidar":"~0.4.0"},"optionalDependencies":{},"engines":{"node":"*"},"devDependencies":{"connect":"~1.9.2"},"keywords":["live","reload","livereload","connect","express"],"readme":"# watch-connect\n\nA connect/express middleware that force browsers to reload when the server detects file changes.\n\nThe watch mode has been borrowed from [https://github.com/mklabs/mockerie](mockerie) by the genious [mklabs](https://github.com/mklabs).\n\n## Usage With Connect\n\n    var Path = require('path'),\n      connect = require('connect'),\n      reloadOnChange = require('watch-connect');\n\n    var path = Path.resolve('example/fixture');\n\n    var server = connect();\n    var options = {watchdir:path, server:server, verbose: true};\n    server.use(reloadOnChange(options));\n    server.use(connect.static(path));\n\n    server.listen(3000, function(){\n      console.log('listening on http://127.0.0.1:3000');\n    });\n\nNow open your browser on the URL `http://127.0.0.1:3000`.\n\nLook at the title color.\n\nNow change the color in `example/fixture/sub/folder/file.css`, and save your changes.\n\nOh look the browser was updated :)\n\n## Usage With Express\n\nTBD\n\n## Options\n\n * `watchdir`: __Required__.  A path to the directory you want to watch, ideally the path to your public assets.  .html files inside this directory will have script tags inserted on their way through the connect middleware (unless `skipAdding` is set to `true`).  Those scripts facilitate the reload.\n * `server`: __Required__.  http server to hook our reload\n * `verbose`: Defaults to false.  Chatty logging.\n * `skipAdding`: Defaults to false.  When set to true, the socket scripts will not be added to .html pages on their way through the middleware.  The assumption is that you would add them to your page(s) yourself.  This serves as a workaround for those who are not rendering .html pages directly, like Express users who may be using Jade templates.\n * `exclude`: an array of _file regexs_ that when changed should not cause a reload.  By default, files containing `/.` (`like foo/.gitignore`) and `node_modules` will be ignored.\n * `additionaldirs`: an array of file paths to additional directories that you want to force a refresh of the browser.  No files inside this directory will not have the script tags inserted into them, these files simply trigger reloads.  Use this to, for example, watch your Jade templates, which typically live outside the directory structure of your public assets.\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Filirom1\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"watch-connect@0.3.4","dist":{"shasum":"da33bbb481f8527cbaaedd21de82a33b433df029","tarball":"https://registry.npmjs.org/watch-connect/-/watch-connect-0.3.4.tgz","integrity":"sha512-W44WMxgkWIuP2odBd44qPzgRq155Id462M0PfFwf859a9LvJHKGkR0d9lQNOV7zZ8eet0ZdgsZ3XVLuW4wfQhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5jN36D6UQG5Fp4jhQXuDzUKCDVzwq6Ztbrs4FiE32rAiEA3JSZ1PL0SraiRgSGm4CTYDxFVabmbdxLJqagDw7UDmY="}]},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"},{"name":"dbashford","email":"dbashford@hotmail.com"}]}},"readme":"","maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"},{"name":"dbashford","email":"dbashford@hotmail.com"}],"time":{"modified":"2022-06-28T21:55:55.360Z","created":"2012-06-05T20:43:10.646Z","0.1.0":"2012-06-05T20:43:12.422Z","0.2.0":"2012-06-21T16:35:59.472Z","0.2.1":"2012-07-12T07:20:56.586Z","0.2.2":"2012-07-12T07:25:06.556Z","0.3.0":"2012-07-18T21:34:31.871Z","0.3.1":"2012-07-29T20:06:11.084Z","0.3.2":"2012-08-03T03:29:16.407Z","0.3.3":"2012-08-13T13:55:33.918Z","0.3.4":"2012-08-19T19:36:52.384Z"},"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"repository":{"type":"git","url":"git://github.com/Filirom1/watch-connect.git"},"users":{"fgribreau":true}}