{"_id":"3dub","_rev":"11-b8179257ba27bc32d0af685eb3c36ece","name":"3dub","description":"www dev server with livereload","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"3dub","version":"0.0.1","description":"www dev server with livereload","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"3dub":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/MiguelCastillo/3dub.git"},"author":{"name":"Miguel Castillo","email":"manchagnu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/MiguelCastillo/3dub/issues"},"homepage":"https://github.com/MiguelCastillo/3dub#readme","dependencies":{"belty":"^5.1.0","body-parser":"^1.17.2","chokidar":"^1.7.0","connect-history-api-fallback":"^1.3.0","connect-livereload":"^0.6.0","express":"^4.15.4","node-proxy-middleware":"^0.15.2","resolve":"^1.4.0","tiny-lr":"^1.0.5"},"gitHead":"0d47e256922731e5ade1cbfd1f18290390a30bc8","_id":"3dub@0.0.1","_shasum":"e61ff52e91fc658daa50d141163e880a1bced6d0","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"manchagnu","email":"manchagnu@gmail.com"},"dist":{"shasum":"e61ff52e91fc658daa50d141163e880a1bced6d0","tarball":"https://registry.npmjs.org/3dub/-/3dub-0.0.1.tgz","integrity":"sha512-j+s0v1pnSvO6nnQPl4sGgcfWu+uZKX+GprJbR+zryP0zw4KAxbJVdLcGgRB/1SOhzCcfSKHHRCCH6iYnW10kSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBtJ9GrtXEDH1Jo1daQDswal3bd1ICyK3TjutUQ79jvfAiEA7nWr+2OVhizN4fAzWgQMPmfi9W/byqW94t0ta/LrHdM="}]},"maintainers":[{"name":"manchagnu","email":"manchagnu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3dub-0.0.1.tgz_1504880826724_0.6727747169788927"}},"0.1.0":{"name":"3dub","version":"0.1.0","description":"www dev server with livereload","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"3dub":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/MiguelCastillo/3dub.git"},"author":{"name":"Miguel Castillo","email":"manchagnu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/MiguelCastillo/3dub/issues"},"homepage":"https://github.com/MiguelCastillo/3dub#readme","dependencies":{"belty":"^5.1.0","body-parser":"^1.17.2","chokidar":"^1.7.0","connect-history-api-fallback":"^1.3.0","connect-livereload":"^0.6.0","express":"^4.15.4","node-proxy-middleware":"^0.15.2","resolve":"^1.4.0","tiny-lr":"^1.0.5"},"gitHead":"020d457bc701e7ae1765c1d202b8080406f01cc7","_id":"3dub@0.1.0","_shasum":"3354a921b98f574c230f30550f35e32cdb8ee9fa","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"manchagnu","email":"manchagnu@gmail.com"},"dist":{"shasum":"3354a921b98f574c230f30550f35e32cdb8ee9fa","tarball":"https://registry.npmjs.org/3dub/-/3dub-0.1.0.tgz","integrity":"sha512-YDU5iv3tp12OQITrBoIArijY3YakzBYdD1CsnlEhltUgUKRX3sS5QSyj52jOlqLkxHRToStg1V+q47MCjicxSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDj3d9krsTal89FWKzgshnpq6HLS/kssSFj6C4beKt53gIhAOuTjUkbkqyhUIoWt7PoUDGmL1vfuX9lTsXmtxT30vi3"}]},"maintainers":[{"name":"manchagnu","email":"manchagnu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3dub-0.1.0.tgz_1505320123493_0.18120524752885103"}},"0.2.0":{"name":"3dub","version":"0.2.0","description":"www dev server with livereload","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"3dub":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/MiguelCastillo/3dub.git"},"author":{"name":"Miguel Castillo","email":"manchagnu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/MiguelCastillo/3dub/issues"},"engines":{"node":">=4"},"homepage":"https://github.com/MiguelCastillo/3dub#readme","dependencies":{"belty":"^5.1.0","body-parser":"^1.17.2","chokidar":"^1.7.0","connect-history-api-fallback":"^1.3.0","connect-livereload":"^0.6.0","dis-isa":"^1.3.0","express":"^4.15.4","node-proxy-middleware":"^0.15.2","resolve":"^1.4.0","subarg":"^1.0.0","tiny-lr":"^1.0.5"},"gitHead":"c3f417567e4091b027d00df476a60a5b8cb11490","_id":"3dub@0.2.0","_shasum":"6423bebfd5206d51ad7ab6d4081b12ce6fad2592","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"manchagnu","email":"manchagnu@gmail.com"},"dist":{"shasum":"6423bebfd5206d51ad7ab6d4081b12ce6fad2592","tarball":"https://registry.npmjs.org/3dub/-/3dub-0.2.0.tgz","integrity":"sha512-Ozz4n1seKk9vtyqmmGsoKNtxcmNxWM8DIFre6Om26CPBd3SpPixkvKF6bgWSBNQdZzO9Sj7+jIaRAakaQclopw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYpYdf/W64b9o+bWFPLnFxC3SA9mIoa6R0Y02e/g2IbAIhAOW/TuVDVn6ZB0pMudjyBxTx4YC3T0gV3NKlztIoY+lz"}]},"maintainers":[{"name":"manchagnu","email":"manchagnu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3dub-0.2.0.tgz_1505338211382_0.9538974710740149"}},"0.3.0":{"name":"3dub","version":"0.3.0","description":"www dev server with livereload","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"3dub":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/MiguelCastillo/3dub.git"},"author":{"name":"Miguel Castillo","email":"manchagnu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/MiguelCastillo/3dub/issues"},"engines":{"node":">=4"},"homepage":"https://github.com/MiguelCastillo/3dub#readme","dependencies":{"belty":"^5.1.0","body-parser":"^1.17.2","chokidar":"^1.7.0","connect-history-api-fallback":"^1.3.0","connect-livereload":"^0.6.0","dis-isa":"^1.3.0","express":"^4.15.4","node-proxy-middleware":"^0.15.2","resolve":"^1.4.0","selfsigned":"^1.10.1","spdy":"^3.4.7","subarg":"^1.0.0","tiny-lr":"^1.0.5"},"gitHead":"c3b7687323532153520bff75057c1e1c9484e229","_id":"3dub@0.3.0","_shasum":"638f1393a0bdbe56b6f3e24cc0c18cf9e6546758","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"manchagnu","email":"manchagnu@gmail.com"},"dist":{"shasum":"638f1393a0bdbe56b6f3e24cc0c18cf9e6546758","tarball":"https://registry.npmjs.org/3dub/-/3dub-0.3.0.tgz","integrity":"sha512-po3jD0uz2sJ5egsYKsvqslbKvED0gk2w0e10Rrw4nVyl3wrW9bvcUSoagLx2n/BqbE99tAje6dUHU3Qpe89SQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHoRQVeToxZjVjXpR2tuQXYfhJQrnMDCtQcAkYuIKXJNAiAKHqXax1TWJ5jlmmhvKGxUMy+4e0KR1VSPovHwI+wy+g=="}]},"maintainers":[{"name":"manchagnu","email":"manchagnu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3dub-0.3.0.tgz_1505360534774_0.8787374412640929"}},"0.4.0":{"name":"3dub","version":"0.4.0","description":"www dev server with livereload","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"3dub":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/MiguelCastillo/3dub.git"},"author":{"name":"Miguel Castillo","email":"manchagnu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/MiguelCastillo/3dub/issues"},"engines":{"node":">=4.8.0"},"homepage":"https://github.com/MiguelCastillo/3dub#readme","dependencies":{"belty":"^5.1.0","body-parser":"^1.17.2","camelcase-keys":"^4.1.0","chokidar":"^1.7.0","connect-history-api-fallback":"^1.3.0","connect-livereload":"^0.6.0","dis-isa":"^1.3.0","express":"^4.15.4","node-proxy-middleware":"^0.15.2","resolve":"^1.4.0","selfsigned":"^1.10.1","spdy":"^3.4.7","subarg":"^1.0.0","tiny-lr":"^1.0.5"},"gitHead":"8b7db62cec135db8d4e7c98a1afcbc38c9a2d5d6","_id":"3dub@0.4.0","_shasum":"07af9cbcd583d54dcd18fc53936d58fa44e7c10e","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"manchagnu","email":"manchagnu@gmail.com"},"dist":{"shasum":"07af9cbcd583d54dcd18fc53936d58fa44e7c10e","tarball":"https://registry.npmjs.org/3dub/-/3dub-0.4.0.tgz","integrity":"sha512-pK7Qfbxcl99t0RNOyB6BepoQWGa+I0mZezH9NPPeuRetnAg0qWNucJ/0FAIvnmhIEQgVGww4Dmga/lx/MkQYTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBoWIRc4cbsK8XkxmCw3EdZLoMHzN5BB++ZQmq+Sun/nAiBMCAMXpwtanXCTAt7Ed/bWd1QBKXyceKmissf73zWOIQ=="}]},"maintainers":[{"name":"manchagnu","email":"manchagnu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3dub-0.4.0.tgz_1505423939885_0.4699786037672311"}},"0.5.0":{"name":"3dub","version":"0.5.0","description":"www dev server with livereload","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"3dub":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/MiguelCastillo/3dub.git"},"author":{"name":"Miguel Castillo","email":"manchagnu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/MiguelCastillo/3dub/issues"},"engines":{"node":">=4.8.0"},"homepage":"https://github.com/MiguelCastillo/3dub#readme","dependencies":{"belty":"^5.1.0","body-parser":"^1.17.2","camelcase-keys":"^4.1.0","chokidar":"^1.7.0","connect-history-api-fallback":"^1.3.0","connect-livereload":"^0.6.0","dis-isa":"^1.3.0","express":"^4.15.4","node-proxy-middleware":"^0.15.2","resolve":"^1.4.0","selfsigned":"^1.10.1","spdy":"^3.4.7","subarg":"^1.0.0","tiny-lr":"^1.0.5"},"keywords":["www","http2","h2","cert","ssl","https","dev","livereload","pfx","web","watch"],"gitHead":"81ebe90d75a4baad04b4f576db3bb66a69a60835","_id":"3dub@0.5.0","_shasum":"37a88c3f255fae860115ed6c2abe6cba58f31666","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.0","_npmUser":{"name":"manchagnu","email":"manchagnu@gmail.com"},"dist":{"shasum":"37a88c3f255fae860115ed6c2abe6cba58f31666","tarball":"https://registry.npmjs.org/3dub/-/3dub-0.5.0.tgz","integrity":"sha512-Q43uuZb3vosk5XLvgy+QVA5OjnL/ti5PDA/taLWJhAnAyX8E8vzxLunotZUHtp4UIURJK6s8nIEPQmNWBX+xQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFTcEfUcko63FzoSDX1ZhZ4q+URarbM0RBUexVXzP5qRAiAPLgHIwZxBmSwm4yLNPGWhgIKViX7WQXdWKAHS5l8daw=="}]},"maintainers":[{"name":"manchagnu","email":"manchagnu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3dub-0.5.0.tgz_1505487416724_0.8332482997793704"}},"1.0.0":{"name":"3dub","version":"1.0.0","description":"www dev server with livereload","main":"index.js","scripts":{},"bin":{"3dub":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/MiguelCastillo/3dub.git"},"author":{"name":"Miguel Castillo","email":"manchagnu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/MiguelCastillo/3dub/issues"},"engines":{"node":">=4.8.0"},"homepage":"https://github.com/MiguelCastillo/3dub#readme","dependencies":{"belty":"^5.1.0","body-parser":"^1.17.2","camelcase-keys":"^4.1.0","chokidar":"^1.7.0","connect-history-api-fallback":"^1.3.0","connect-livereload":"^0.6.0","dis-isa":"^1.3.0","express":"^4.15.4","node-proxy-middleware":"^0.15.2","resolve":"^1.4.0","selfsigned":"^1.10.1","spdy":"^3.4.7","subarg":"^1.0.0","tiny-lr":"^1.0.5"},"keywords":["www","http2","h2","cert","ssl","https","dev","livereload","pfx","web","watch"],"gitHead":"4234997061c8590eba4c01371d3a07e9fca58b6c","_id":"3dub@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"manchagnu","email":"manchagnu@gmail.com"},"dist":{"integrity":"sha512-dIMA4LgOqDpC7VfmgGSKjxhXzTsbSb4u6fMIk3MqwUfbiX+rPK5EPrOWDu07PHunqxU+Ryog7nCLV9U3qF2piA==","shasum":"bc741b4ecdce6069ef4a0c016a97b13652ea0cbd","tarball":"https://registry.npmjs.org/3dub/-/3dub-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDorcQeSFnhbT7mXAVEKgxOdPBAaX97dvgXF/o3Z3+wmQIfdAxYBQUdZTqzz4+ypP1CLzmdaTQh5v2OBkNNBA+O+A=="}]},"maintainers":[{"name":"manchagnu","email":"manchagnu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3dub-1.0.0.tgz_1513783843881_0.5829510514158756"}},"1.0.1":{"name":"3dub","version":"1.0.1","description":"www dev server with livereload","main":"index.js","scripts":{},"bin":{"3dub":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/MiguelCastillo/3dub.git"},"author":{"name":"Miguel Castillo","email":"manchagnu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/MiguelCastillo/3dub/issues"},"engines":{"node":">=4.8.0"},"homepage":"https://github.com/MiguelCastillo/3dub#readme","dependencies":{"belty":"^5.1.0","body-parser":"^1.17.2","camelcase-keys":"^4.1.0","chokidar":"^2.0.0","connect-history-api-fallback":"^1.3.0","connect-livereload":"^0.6.0","dis-isa":"^1.3.0","express":"^4.15.4","node-proxy-middleware":"^0.15.2","resolve":"^1.4.0","selfsigned":"^1.10.1","spdy":"^3.4.7","subarg":"^1.0.0","tiny-lr":"^1.0.5"},"keywords":["www","http2","h2","cert","ssl","https","dev","livereload","pfx","web","watch"],"gitHead":"50c31022d4989403cb93583c1651fa2bfedbad55","_id":"3dub@1.0.1","_shasum":"978b7cccd82e1ef5576f03f153702d20a4fc92a7","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.6","_npmUser":{"name":"manchagnu","email":"manchagnu@gmail.com"},"dist":{"shasum":"978b7cccd82e1ef5576f03f153702d20a4fc92a7","tarball":"https://registry.npmjs.org/3dub/-/3dub-1.0.1.tgz","integrity":"sha512-n8MLBSO85zMlMkeHi0lXXeQTc3fcRxRgWQ9tGLTnYRkpYYsbk062Y2nweJIc2O73oPsQltLI4enVxJuknyb84w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwhPVn0+xme6hHiH4dejx3heZwThH18OTI61AYJ+9VywIhAJ4y3VSGnP4CyMF0ai+17TD5iTP8kfeYhdatBYNPUmV3"}]},"maintainers":[{"name":"manchagnu","email":"manchagnu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3dub-1.0.1.tgz_1515556705808_0.9868820307310671"}},"1.1.0":{"name":"3dub","version":"1.1.0","description":"www dev server with livereload","main":"index.js","scripts":{},"bin":{"3dub":"bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/MiguelCastillo/3dub.git"},"author":{"name":"Miguel Castillo","email":"manchagnu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/MiguelCastillo/3dub/issues"},"engines":{"node":">=4.8.0"},"homepage":"https://github.com/MiguelCastillo/3dub#readme","dependencies":{"belty":"^5.1.0","body-parser":"^1.17.2","camelcase-keys":"^4.1.0","chokidar":"^2.0.0","connect-history-api-fallback":"^1.3.0","connect-livereload":"^0.6.0","dis-isa":"^1.3.0","express":"^4.15.4","node-proxy-middleware":"^0.15.2","resolve":"^1.4.0","selfsigned":"^1.10.1","spdy":"^3.4.7","subarg":"^1.0.0","tiny-lr":"^1.0.5"},"keywords":["www","http2","h2","cert","ssl","https","dev","livereload","pfx","web","watch"],"gitHead":"c737d70c324e9bec59e306cf4b6325efc26acbe3","_id":"3dub@1.1.0","_shasum":"b59750f89071c870b3053d25591098a1079cc33f","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.6","_npmUser":{"name":"manchagnu","email":"manchagnu@gmail.com"},"dist":{"shasum":"b59750f89071c870b3053d25591098a1079cc33f","tarball":"https://registry.npmjs.org/3dub/-/3dub-1.1.0.tgz","integrity":"sha512-rScqCIlMDy5lsqJcttxqBW1zwRzrVgn/tXu6aWEgwChe3Y7N0O8rr6CaN2eh4sDFvh6m60WVXefGP42PTGieKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAJ/F2s6XX2AFEiVf5jFw3XPbu92EOb0VkugzERXj1hVAiEA0I2EUABKypXD8gvcArdzSZMzREuqNBHXPO0HKAUOUaU="}]},"maintainers":[{"name":"manchagnu","email":"manchagnu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3dub-1.1.0.tgz_1515601353481_0.9957696325145662"}}},"readme":"# 3dub\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/MiguelCastillo/3dub.svg)](https://greenkeeper.io/)\n\nwww dev server with livereload and file watching for developing Single Page Applications.\n\n\n## Features\n\n1. Serve static files\n2. File watching of the static files\n3. Livereload when watched files change\n    - Starts its own livereload server\n    - Automatically inject livereload into your application\n4. Https and Http2 support\n5. Auto generation of self signed certs\n6. Proxy settings with socket support\n7. Built on top of battle tested tools such as [Express](https://expressjs.com/), [chokidar](https://github.com/paulmillr/chokidar), [tiny-lr](https://github.com/mklabs/tiny-lr), and more.\n\n\n## Examples\n\n### Hello world\n\nThis setup will quickly walk you through starting up a server with ZERO configuration (all default settings). Serve up static assets, monitor them and when they change, livereload will refresh the browser where you are viewing your application.\n\n#### install 3dub globally\n\n```\n$ npm install 3dub -g\n```\n\n#### create public folder\n\nBy default, 3dub serves up static assets from a directory called `public` relative where 3dub starts from. So let's go ahead and create one if one does not already exist. All your code goes in there.\n\n```\n$ mkdir public\n```\n\n#### start 3dub\n\n```\n$ 3dub\n```\n\n#### view in the browser\n\n```\n$ open http://localhost:3000\n```\n\n\n### Custom port via configuration file\n\nAdding a configuration for 3dub is a way to customize default settings. Generally, you will create configuration files wherever you expect to start 3dub from.\n\n#### configure 3dub\n\nCreate a file called `.3dub.js` and configure the server port.\n\n```\nmodule.exports = {\n  \"port\": 4545\n};\n```\n\n#### start 3dub\n\n```\n$ 3dub\n```\n\n### CLI examples\n\nAll options available for 3dub are for both the CLI and configuration files. Configuration files just makes some situations easier to work with as in the case of defining complex option object when defining middlewares.\n\n#### start 3dub with custom port\n\n```\n$ 3dub --port 4545\n```\n\n#### 3dub with root directory\n\n```\n$ 3dub --root dest\n```\n\n#### 3dub with http2 and custom port\n\n```\n$ 3dub --mode http2 --port 8443\n```\n\n\n## Configuration\n\n3dub allows you to define a configuration in your project's directory. You can also specify a default configuration file in your HOME directory. If you specify both, the your local project's definition will be mixed in with the settings defined in HOME.\n\nThe default name of your configuration is `.3dub.json` for JSON and `.3dub.js` for JavaScript. You can alternatively create a `.3dub` directory with an `index.js` that contains your settings.\n\n\n### Options (Configuration file and CLI)\n\n> CLI only supports subarg notation when working complex object.\n\n- `config` (string) Configuration file name to load. By default it will load `.3dub.json` and `.3dub.js` files or `.3dub` directory with an `index.js` file in it. **CLI only**\n\n- `log` (boolean) flag to disable logging of noisy messages. Defaults to `true`.\n\n- `port` (number) port to for the server to listen on for incoming requests. Defaults to `3000`.\n\n- `root` (string) path to serve files from. Defaults to `public`.\n\n- `history` (string | object) to configure the history middleware for managing your SPA. For details on the settings, please see [here](https://github.com/bripkens/connect-history-api-fallback). Defaults to `index.html`.\n\n- `livereload` (number | object | boolean) When false, livereload is disabled. When its a number, then livereload client and server use that as the port number. When it is an object, settings are those used by [tiny-lr](https://github.com/mklabs/tiny-lr). If you want to specify different settings for the livereload client and livereload server, then you can define a `server` and a `client` object with the corresponding options. Default value is the port number `35729`.\n\n- `watch` (string[] | object | boolean) When false, file watching is disabled. When string or array of strings, you sepcify the files and directories to be monitored for changes; globs are supported. If options is an object, then they are forwarded to [chokidar](https://github.com/paulmillr/chokidar). `watch` is only enabled when `livereload` is enabled. Defaults to the `root` directory.\n\n- `proxies` (array<{source, target}>) Array of objects with a `source` property for the local url path and a `target` to the remote url path we are mapping to.\n\n- `middlewares` (array<string | object | array> | object) Option to define middlewares to be loaded. You can specify an array of middleware module names, you can also specify an object whose keys are the names of middleware modules and the values are the corresponding options for them. You can also specify middlewares using subarg notation, which is an array where the first item is the middleware module name and the second item are the options for it; e.g. [\"middleware-module\", options].\n\n- `spdy` (object) configure the http2 handler. Please take a look at the [spdy](https://github.com/spdy-http2/node-spdy) module for details on the valid options.\n\n- `mode` (string) configure what protocol to run. E.g. http, https, or http2. For https and http2 mode, you must provide the pair `cert` and `key` or `pfx` and `passphrase`. If you do not provide either, a self signed certificate will be automatically generated for you.\n\n- `cert` (string) When using https, the cert option is for specifying the file path to the certificate file to be used by the server.\n\n- `key` (string) When using https, the key option is for specifying the file path to the private key file to be used by the server.\n\n- `pfx` (string) When using https, the pfx option is for specifying the file path for the pfx file to be used by the server.\n\n- `passphrase` (string) When using https, the passphrase option is required for opening the pfx file that will be used by the server.\n\n\n## Self signed certificates\n\nWhen running 3dub in https or http2 mode, you have the option to specify your own certificate. If one isn't provided, then 3dub will create its own self signed certificate and will log a warning. A self signed certificate is automatically created to make it really easy to get a dev server up and running. And... The self signed cerficate is not written to disk.\n\n\n## Installation\n\nInstall via npm as a dev dependency, and configure an npm script to start the server. This is my preferred approach as it allows you to define the version of 3dub on a per project basis and also removes the need to install 3dub globally.\n\n```\n$ npm install 3dub --save-dev\n```\n\nInstall globally so that you can start 3dub from anywhere via CLI.\n\n```\n$ npm install 3dub -g\n```\n\n## Requirements\n\nFor http2 to work as expected, nodejs 4.8.0 and above is required. This is because ALPN was added in that version of node which is required by browsers like Chrome to properly negotiate the protocol.\n\nhttps://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#2017-02-21-version-480-argon-lts-mylesborins\n","maintainers":[{"name":"manchagnu","email":"manchagnu@gmail.com"}],"time":{"modified":"2022-06-12T14:07:25.263Z","created":"2017-09-08T14:27:07.696Z","0.0.1":"2017-09-08T14:27:07.696Z","0.1.0":"2017-09-13T16:28:44.507Z","0.2.0":"2017-09-13T21:30:12.293Z","0.3.0":"2017-09-14T03:42:15.702Z","0.4.0":"2017-09-14T21:19:00.724Z","0.5.0":"2017-09-15T14:56:58.186Z","1.0.0":"2017-12-20T15:30:44.951Z","1.0.1":"2018-01-10T03:58:26.838Z","1.1.0":"2018-01-10T16:22:34.574Z"},"homepage":"https://github.com/MiguelCastillo/3dub#readme","repository":{"type":"git","url":"git+https://github.com/MiguelCastillo/3dub.git"},"author":{"name":"Miguel Castillo","email":"manchagnu@gmail.com"},"bugs":{"url":"https://github.com/MiguelCastillo/3dub/issues"},"license":"MIT","readmeFilename":"README.md","keywords":["www","http2","h2","cert","ssl","https","dev","livereload","pfx","web","watch"]}