{"_id":"create-servers","_rev":"382282","name":"create-servers","description":"Create an http AND/OR an https server and call the same request handler.","dist-tags":{"latest":"3.2.0"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"time":{"modified":"2021-08-04T02:24:38.000Z","created":"2014-01-20T04:03:16.743Z","3.2.0":"2021-07-08T18:41:57.306Z","3.1.0":"2019-07-25T21:08:10.021Z","3.0.1":"2019-07-08T21:20:59.092Z","3.0.0":"2019-07-08T10:32:47.981Z","2.6.1":"2019-01-10T22:37:23.700Z","2.6.0":"2018-07-17T17:16:03.661Z","2.5.0":"2018-06-28T18:06:19.363Z","2.4.0":"2018-05-15T14:10:23.493Z","2.3.0":"2016-11-16T19:07:25.593Z","2.2.1":"2016-07-14T19:53:34.475Z","2.2.0":"2016-05-13T21:52:23.095Z","2.1.0":"2016-05-13T18:48:12.103Z","2.0.1":"2016-02-16T00:07:37.559Z","2.0.0":"2015-12-04T13:52:14.870Z","1.5.0":"2015-05-07T23:34:27.250Z","1.4.0":"2015-05-02T06:17:24.605Z","1.3.2":"2015-04-28T19:14:27.538Z","1.3.1":"2015-03-28T14:57:55.226Z","1.3.0":"2014-09-11T08:15:06.596Z","1.2.1":"2014-08-19T06:45:50.246Z","1.2.0":"2014-01-20T04:18:29.907Z","1.1.0":"2014-01-20T04:06:18.572Z","1.0.0":"2014-01-20T04:03:16.743Z"},"users":{},"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/http-party/create-servers.git"},"versions":{"3.2.0":{"name":"create-servers","version":"3.2.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/http-party/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/http-party/create-servers/issues"},"homepage":"https://github.com/http-party/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"evil-dns":"^0.2.0","sinon":"^5.0.7","tape":"~4.9.0"},"gitHead":"c07ee4911b423ca809ba03da79f011c187832c9e","_id":"create-servers@3.2.0","_nodeVersion":"16.2.0","_npmVersion":"7.13.0","dist":{"shasum":"6e399fa51c8b15e1afae471a5a31c48b69d7f02d","size":23074,"noattachment":false,"key":"/create-servers/-/create-servers-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-3.2.0.tgz"},"_npmUser":{"name":"swaagie","email":"martijn@swaagman.online"},"directories":{},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-servers_3.2.0_1625769717111_0.8184295837996856"},"_hasShrinkwrap":false,"publish_time":1625769717306,"_cnpm_publish_time":1625769717306},"3.1.0":{"name":"create-servers","version":"3.1.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/http-party/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/http-party/create-servers/issues"},"homepage":"https://github.com/http-party/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"evil-dns":"^0.2.0","sinon":"^5.0.7","tape":"~4.9.0"},"gitHead":"f010492a97befa10afc414e057705b99512afd1e","_id":"create-servers@3.1.0","_nodeVersion":"10.16.0","_npmVersion":"6.10.1","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"dist":{"shasum":"74325938a8fb63236a9f353e6eb0d0ce22b8fd31","size":22015,"noattachment":false,"key":"/create-servers/-/create-servers-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-3.1.0.tgz"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-servers_3.1.0_1564088889907_0.8765869611678823"},"_hasShrinkwrap":false,"publish_time":1564088890021,"_cnpm_publish_time":1564088890021},"3.0.1":{"name":"create-servers","version":"3.0.1","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/http-party/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/http-party/create-servers/issues"},"homepage":"https://github.com/http-party/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"evil-dns":"^0.2.0","sinon":"^5.0.7","tape":"~4.9.0"},"gitHead":"f9b9627b6fb717f98e030ece554c323d65bb1f1c","_id":"create-servers@3.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"dist":{"shasum":"4f91073a1a470eb703d2db6de1e013252a381f14","size":21944,"noattachment":false,"key":"/create-servers/-/create-servers-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-3.0.1.tgz"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-servers_3.0.1_1562620858914_0.24824040489868882"},"_hasShrinkwrap":false,"publish_time":1562620859092,"_cnpm_publish_time":1562620859092},"3.0.0":{"name":"create-servers","version":"3.0.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/http-party/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/http-party/create-servers/issues"},"homepage":"https://github.com/http-party/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"evil-dns":"^0.2.0","sinon":"^5.0.7","tape":"~4.9.0"},"gitHead":"09566dab4ba2be582d346e40051c00733fcc109a","_id":"create-servers@3.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.3.0","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"a354fd18eb7df1c477bb6a887ffaa802d573f131","size":21842,"noattachment":false,"key":"/create-servers/-/create-servers-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-3.0.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-servers_3.0.0_1562581967815_0.33735607575765436"},"_hasShrinkwrap":false,"publish_time":1562581967981,"_cnpm_publish_time":1562581967981},"2.6.1":{"name":"create-servers","version":"2.6.1","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/indexzero/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"evil-dns":"^0.2.0","sinon":"^5.0.7","tape":"~4.9.0"},"gitHead":"e4bf5459749d7770748be386e4e4997e70ff5a2b","_id":"create-servers@2.6.1","_npmVersion":"6.2.0","_nodeVersion":"10.15.0","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"b2c81e14f962914b77adaa2274410e10bdf6f32c","size":21006,"noattachment":false,"key":"/create-servers/-/create-servers-2.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-2.6.1.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-servers_2.6.1_1547159843526_0.141409264303622"},"_hasShrinkwrap":false,"publish_time":1547159843700,"_cnpm_publish_time":1547159843700},"2.6.0":{"name":"create-servers","version":"2.6.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/indexzero/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"evil-dns":"^0.2.0","sinon":"^5.0.7","tape":"~4.9.0"},"gitHead":"47133706d95250131a828d7cb05cf34409278f7a","_id":"create-servers@2.6.0","_npmVersion":"6.1.0","_nodeVersion":"8.10.0","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"ec6d24921cdd3136a32474aca62bdbc1d7c8ec97","size":21024,"noattachment":false,"key":"/create-servers/-/create-servers-2.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-2.6.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-servers_2.6.0_1531847763534_0.10982825224677994"},"_hasShrinkwrap":false,"publish_time":1531847763661,"_cnpm_publish_time":1531847763661},"2.5.0":{"name":"create-servers","version":"2.5.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/indexzero/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"sinon":"^5.0.7","tape":"~4.9.0"},"gitHead":"df84eca5f3d51a95efccdce3c3258517863dcc7b","_id":"create-servers@2.5.0","_npmVersion":"6.1.0","_nodeVersion":"8.10.0","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"5ab7e3ba947d6ccd0bcf6d20098ee4218f2a88c8","size":12204,"noattachment":false,"key":"/create-servers/-/create-servers-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-2.5.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-servers_2.5.0_1530209178610_0.49906312549650966"},"_hasShrinkwrap":false,"publish_time":1530209179363,"_cnpm_publish_time":1530209179363},"2.4.0":{"name":"create-servers","version":"2.4.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/indexzero/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"sinon":"^5.0.7","tape":"~4.9.0"},"gitHead":"e09b4aad5c432a5ddfe4208c32194a61ff94f6d8","_id":"create-servers@2.4.0","_npmVersion":"6.0.0","_nodeVersion":"8.9.1","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"dist":{"shasum":"e3c8d244962e36cae9dba3dd945564f037a4f183","size":6148,"noattachment":false,"key":"/create-servers/-/create-servers-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-2.4.0.tgz"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-servers_2.4.0_1526393423399_0.6222939031637784"},"_hasShrinkwrap":false,"publish_time":1526393423493,"_cnpm_publish_time":1526393423493},"2.3.0":{"name":"create-servers","version":"2.3.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/indexzero/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"sinon":"^1.17.4","tape":"~4.6.0"},"gitHead":"07b22456bb65cdfc9ee1c8f16e64df691cf2bc7f","_id":"create-servers@2.3.0","_shasum":"9be66fed3067770a9ae17ba7a1951598234ca370","_from":".","_npmVersion":"3.9.6","_nodeVersion":"4.4.3","_npmUser":{"name":"jcrugzz","email":"jcrugzz@gmail.com"},"dist":{"shasum":"9be66fed3067770a9ae17ba7a1951598234ca370","size":6202,"noattachment":false,"key":"/create-servers/-/create-servers-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-2.3.0.tgz"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/create-servers-2.3.0.tgz_1479323243527_0.710361763369292"},"directories":{},"publish_time":1479323245593,"_cnpm_publish_time":1479323245593,"_hasShrinkwrap":false},"2.2.1":{"name":"create-servers","version":"2.2.1","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/indexzero/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"sinon":"^1.17.4","tape":"~4.6.0"},"gitHead":"838b14b8e27331f93051f1e4434acfc17230abbd","_id":"create-servers@2.2.1","_shasum":"b6f4d38dd0c189c4a58241cd8421e90995fcfaf0","_from":".","_npmVersion":"3.10.5","_nodeVersion":"4.4.3","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"b6f4d38dd0c189c4a58241cd8421e90995fcfaf0","size":7322,"noattachment":false,"key":"/create-servers/-/create-servers-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-2.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/create-servers-2.2.1.tgz_1468526013963_0.8274037132505327"},"directories":{},"publish_time":1468526014475,"_cnpm_publish_time":1468526014475,"_hasShrinkwrap":false},"2.2.0":{"name":"create-servers","version":"2.2.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/indexzero/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"sinon":"^1.17.4","tape":"~2.14.0"},"gitHead":"95c95aaeae1d7604f61577971c7cb452bf6b31ce","_id":"create-servers@2.2.0","_shasum":"efca4bad68f9950efcd47923ac52b74ee674711f","_from":".","_npmVersion":"3.8.9","_nodeVersion":"4.4.3","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"efca4bad68f9950efcd47923ac52b74ee674711f","size":7251,"noattachment":false,"key":"/create-servers/-/create-servers-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-2.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/create-servers-2.2.0.tgz_1463176342613_0.6477507250383496"},"directories":{},"publish_time":1463176343095,"_cnpm_publish_time":1463176343095,"_hasShrinkwrap":false},"2.1.0":{"name":"create-servers","version":"2.1.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/indexzero/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0","object-assign":"^4.1.0"},"devDependencies":{"sinon":"^1.17.4","tape":"~2.14.0"},"gitHead":"897ad3b1840f00e2958d191223ed39b7e2c12339","_id":"create-servers@2.1.0","_shasum":"989dcdbf361eb537500e6233eef91b16d449d33f","_from":".","_npmVersion":"3.8.9","_nodeVersion":"4.4.3","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"989dcdbf361eb537500e6233eef91b16d449d33f","size":7014,"noattachment":false,"key":"/create-servers/-/create-servers-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-2.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/create-servers-2.1.0.tgz_1463165288688_0.8948772985022515"},"directories":{},"publish_time":1463165292103,"_cnpm_publish_time":1463165292103,"_hasShrinkwrap":false},"2.0.1":{"name":"create-servers","version":"2.0.1","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/indexzero/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0"},"devDependencies":{"tape":"~2.14.0"},"gitHead":"d8c2ca45f43fb25fda7a5cc089e8995686b3bb5c","_id":"create-servers@2.0.1","_shasum":"f8be53ecfd684b65ebb592a6868d85b9e844249a","_from":".","_npmVersion":"3.7.1","_nodeVersion":"4.2.2","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"f8be53ecfd684b65ebb592a6868d85b9e844249a","size":6763,"noattachment":false,"key":"/create-servers/-/create-servers-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-2.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/create-servers-2.0.1.tgz_1455581253863_0.5420594229362905"},"directories":{},"publish_time":1455581257559,"_cnpm_publish_time":1455581257559,"_hasShrinkwrap":false},"2.0.0":{"name":"create-servers","version":"2.0.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"git+https://github.com/indexzero/create-servers.git"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0"},"devDependencies":{"tape":"~2.14.0"},"gitHead":"2f096ba4f7cb88543395e9ad858239f54b5bf2ad","_id":"create-servers@2.0.0","_shasum":"3bf4bfdf4a1c38bf276de2aff4c935120d21b9b2","_from":".","_npmVersion":"3.5.0","_nodeVersion":"4.2.1","_npmUser":{"name":"swaagie","email":"info@martijnswaagman.nl"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"3bf4bfdf4a1c38bf276de2aff4c935120d21b9b2","size":5590,"noattachment":false,"key":"/create-servers/-/create-servers-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-2.0.0.tgz"},"directories":{},"publish_time":1449237134870,"_cnpm_publish_time":1449237134870,"_hasShrinkwrap":false},"1.5.0":{"name":"create-servers","version":"1.5.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"https://github.com/indexzero/create-servers"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0"},"devDependencies":{"tape":"~2.14.0"},"gitHead":"348c65e7d92d8205d9309759476e5d1b1d3789cb","_id":"create-servers@1.5.0","_shasum":"da11a923773c820ca65ed9f921e53dfb7dabbb64","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.10.36","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"da11a923773c820ca65ed9f921e53dfb7dabbb64","size":6663,"noattachment":false,"key":"/create-servers/-/create-servers-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-1.5.0.tgz"},"directories":{},"publish_time":1431041667250,"_cnpm_publish_time":1431041667250,"_hasShrinkwrap":false},"1.4.0":{"name":"create-servers","version":"1.4.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"https://github.com/indexzero/create-servers"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0"},"devDependencies":{"tape":"~2.14.0"},"gitHead":"7a8068cc5db6000d7ea69b1fc906be80a972c71e","_id":"create-servers@1.4.0","_shasum":"e26489ce4f983ff58c833b20f6d749b79b34bfce","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.38","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"e26489ce4f983ff58c833b20f6d749b79b34bfce","size":5297,"noattachment":false,"key":"/create-servers/-/create-servers-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-1.4.0.tgz"},"directories":{},"publish_time":1430547444605,"_cnpm_publish_time":1430547444605,"_hasShrinkwrap":false},"1.3.2":{"name":"create-servers","version":"1.3.2","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"https://github.com/indexzero/create-servers"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0"},"devDependencies":{"tape":"~2.14.0"},"gitHead":"1158bb65830fae51b6d13e747ac99172f3b85a28","_id":"create-servers@1.3.2","_shasum":"1a16269db07122deea8e5173c35326d4793eb7c8","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"1a16269db07122deea8e5173c35326d4793eb7c8","size":4786,"noattachment":false,"key":"/create-servers/-/create-servers-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-1.3.2.tgz"},"directories":{},"publish_time":1430248467538,"_cnpm_publish_time":1430248467538,"_hasShrinkwrap":false},"1.3.1":{"name":"create-servers","version":"1.3.1","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"https://github.com/indexzero/create-servers"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0"},"devDependencies":{"tape":"~2.14.0"},"gitHead":"8b4e714ea2477537b0ba0c995fe7a0df2ca345a7","_id":"create-servers@1.3.1","_shasum":"aa7f5cfc60cef537a8b88695abc4222fabf094a9","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"aa7f5cfc60cef537a8b88695abc4222fabf094a9","size":4562,"noattachment":false,"key":"/create-servers/-/create-servers-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-1.3.1.tgz"},"directories":{},"publish_time":1427554675226,"_cnpm_publish_time":1427554675226,"_hasShrinkwrap":false},"1.3.0":{"name":"create-servers","version":"1.3.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"https://github.com/indexzero/create-servers"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0"},"devDependencies":{"tape":"~2.14.0"},"gitHead":"903afe7e775b848a3df928ec926c6c113abe1830","_id":"create-servers@1.3.0","_shasum":"a32e33d748a85cb0c4be5f742bb2c79266d72233","_from":".","_npmVersion":"2.0.0-beta.3","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"a32e33d748a85cb0c4be5f742bb2c79266d72233","size":4488,"noattachment":false,"key":"/create-servers/-/create-servers-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-1.3.0.tgz"},"directories":{},"publish_time":1410423306596,"_cnpm_publish_time":1410423306596,"_hasShrinkwrap":false},"1.2.1":{"name":"create-servers","version":"1.2.1","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"https://github.com/indexzero/create-servers"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"~0.0.2","errs":"~0.3.0"},"devDependencies":{"tape":"~2.14.0"},"_id":"create-servers@1.2.1","_shasum":"89f40cff7d60ddf962f4fb07f74b010cb4e10a4a","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"89f40cff7d60ddf962f4fb07f74b010cb4e10a4a","size":4406,"noattachment":false,"key":"/create-servers/-/create-servers-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-1.2.1.tgz"},"directories":{},"publish_time":1408430750246,"_cnpm_publish_time":1408430750246,"_hasShrinkwrap":false},"1.2.0":{"name":"create-servers","version":"1.2.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"https://github.com/indexzero/create-servers"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"0.0.0","errs":"~0.3.0"},"devDependencies":{"tape":"~2.3.2"},"readmeFilename":"README.md","_id":"create-servers@1.2.0","dist":{"shasum":"01ab39d258c26386da9a067e57300247bc0f242b","size":4434,"noattachment":false,"key":"/create-servers/-/create-servers-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-1.2.0.tgz"},"_from":".","_npmVersion":"1.3.23","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"publish_time":1390191509907,"_cnpm_publish_time":1390191509907,"_hasShrinkwrap":false},"1.1.0":{"name":"create-servers","version":"1.1.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"https://github.com/indexzero/create-servers"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"0.0.0","errs":"~0.3.0"},"devDependencies":{"tape":"~2.3.2"},"readmeFilename":"README.md","_id":"create-servers@1.1.0","dist":{"shasum":"86744ba1b3b29d7bee4f2a09bff246ac7d5cc5b3","size":4259,"noattachment":false,"key":"/create-servers/-/create-servers-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-1.1.0.tgz"},"_from":".","_npmVersion":"1.3.23","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"publish_time":1390190778572,"_cnpm_publish_time":1390190778572,"_hasShrinkwrap":false},"1.0.0":{"name":"create-servers","version":"1.0.0","description":"Create an http AND/OR an https server and call the same request handler.","main":"index.js","scripts":{"test":"node test/create-servers-test.js"},"repository":{"type":"git","url":"https://github.com/indexzero/create-servers"},"keywords":["http","https","utility"],"author":{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/indexzero/create-servers/issues"},"homepage":"https://github.com/indexzero/create-servers","dependencies":{"connected":"0.0.0","errs":"~0.3.0"},"devDependencies":{"tape":"~2.3.2"},"readmeFilename":"README.md","_id":"create-servers@1.0.0","dist":{"shasum":"481a635ff08c4d2805c37cd2f363fc2bf83be097","size":4239,"noattachment":false,"key":"/create-servers/-/create-servers-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/create-servers/download/create-servers-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.23","_npmUser":{"name":"indexzero","email":"charlie.robbins@gmail.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"bcbailey","email":"brad@memoryleak.org"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"publish_time":1390190596743,"_cnpm_publish_time":1390190596743,"_hasShrinkwrap":false}},"readme":"# create-servers\n\nCreate an http AND/OR an https server and call the same request handler.\n\n## Usage\n\nThe `create-servers` module exports a function that takes a config object and\na node-style callback. The config object must have at minimum an `http` or\n`https` property (or both). The following config properties are supported:\n\n| Property                 | Description                                                                                                                                                                                                                                                                           |\n| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `handler`                | Request handler to be used for any server, unless overridden specifically with `http.handler` or `https.handler`.                                                                                                                                                                     |\n| `timeout`                | Socket timeout in milliseconds for any server, unless overridden with `http.timeout` or `https.timeout`. Defaults to the node default of 2 minutes.                                                                                                                                   |\n| `http`                   | Optional. If present, an HTTP server is started. This can be an object or a number. If it's a number, it's used as the TCP port for an HTTP server. You may also use an Array to start multiple servers.                                                                              |\n| `http.port`              | TCP port for the HTTP server. Defaults to `80`.                                                                                                                                                                                                                                       |\n| `http.host`              | The address the HTTP server is bound to. Defaults to `::` or `0.0.0.0`.                                                                                                                                                                                                               |\n| `http.timeout`           | Socket timeout in milliseconds for the server. If unspecified, the top-level `timeout` configuration is used.                                                                                                                                                                         |\n| `http.handler`           | Handler for HTTP requests. If you want to share a handler with all servers, use a top-level `handler` config property instead.                                                                                                                                                        |\n| `https`                  | Optional object. If present, an HTTPS server is started. You may start multiple HTTPS servers by passing an array of objects                                                                                                                                                          |\n| `https.port`             | TCP port for the HTTPS server. Defaults to `443`.                                                                                                                                                                                                                                     |\n| `https.host`             | The address the HTTPS server is bound to. Defaults to `::` or `0.0.0.0`.                                                                                                                                                                                                              |\n| `https.timeout`          | Socket timeout in milliseconds for the server. If unspecified, the top-level `timeout` configuration is used.                                                                                                                                                                         |\n| `https.ciphers`          | Defaults to a [default cipher suite](#note-on-security). To customize, either supply a colon-separated string or array of strings for the ciphers you want the server to support.                                                                                                     |\n| `https.honorCipherOrder` | If true, prefer the server's specified cipher order instead of the client's. Defaults to `false`.                                                                                                                                                                                     |\n| `https.root`             | Root directory for certificate/key files. See [Certificate normalization](#certificate-normalization) for more details.                                                                                                                                                               |\n| `https.key`              | PEM/file path for the server's private key. See [Certificate normalization](#certificate-normalization) for more details.                                                                                                                                                             |\n| `https.cert`             | PEM/file path(s) for the server's certificate. See [Certificate normalization](#certificate-normalization) for more details.                                                                                                                                                          |\n| `https.ca`               | Cert or array of certs specifying trusted authorities for peer certificates. Only required if your server accepts client certificate connections signed by authorities that are not trusted by default. See [Certificate normalization](#certificate-normalization) for more details. |\n| `https.sni`              | See [SNI Support](#sni-support).                                                                                                                                                                                                                                                      |\n| `https.handler`          | Handler for HTTPS requests. If you want to share a handler with all servers, use a top-level `handler` config property instead.                                                                                                                                                       |\n| `https.*`                | Any other properties supported by [https.createServer](https://nodejs.org/dist/latest-v8.x/docs/api/https.html#https_https_createserver_options_requestlistener) can be added to the https object, except `secureProtocol` and `secureOptions` which are set to recommended values.   |\n| `http2`                  | Optional object. If present, an HTTP/2 server is started. You may start multiple HTTP/2 servers by passing an array of objects                                                                                                                                                        |\n| `http2.allowHTTP1`       | Enable [ALPN negotiation] allowing support for both HTTPS and HTTP/2 on the same socket.                                                                                                                                                                                              |\n| `http2.*`                | The same `https` security options are allowed, as well as any other properties supported by [http2.createSecureServer](https://nodejs.org/dist/latest-v8.x/docs/api/http2.html#http2_http2_createsecureserver_options_onrequesthandler).                                              |\n\nIf successful, the `create-servers` callback is passed an object with the\nfollowing properties:\n\n| Property | Description                                                                                     |\n| -------- | ----------------------------------------------------------------------------------------------- |\n| `http`   | The HTTP server that was created, if any. If creating multiple servers, this will be an Array.  |\n| `https`  | The HTTPS server that was created, if any. If creating multiple servers, this will be an Array. |\n\n### Certificate Normalization\n\n`create-servers` provides some conveniences for `https.ca`, `https.key`, and\n`https.cert` config properties. You may use PEM data directly (inside a `Buffer`\nor string) or a file name. When using a file name, you must also set an\n`https.root` config property if using relative paths to cert/key files.\n\n`https.ca`, `https.cert`, and `https.key` also support specifying an Array.\nGiven an array for `cert`, you must have a matching array for `key` so each cert\ncan be matched with its private key.\n\n```js\nconst createServers = require('create-servers');\n\ncreateServers({\n  https: {\n    root: '/cert/path',\n    cert: ['cert1.crt', 'cert2.crt'],\n    key: ['cert1.key', 'cert2.key']\n  }\n}, err => {\n  // ...\n})\n```\n\nIf you have a cert that is signed by an intermediate CA, your server will need\nto append the untrusted parts of the CA chain with your cert. To make this more\nconvenient, `create-servers` lets you use an array to automatically create a\nchain.\n\n```js\nconst createServers = require('create-servers');\n\ncreateServers({\n  https: {\n    root: '/cert/path',\n    cert: ['cert.crt', 'intermediate.crt'],\n    key: 'cert.key'\n  }\n}, err => {\n  // ...\n})\n```\n\nIf you are specifying multiple certs _and_ you want to create chains for each,\nuse an array of arrays.\n\n```js\nconst createServers = require('create-servers');\n\ncreateServers({\n  https: {\n    root: '/cert/path',\n    cert: [['cert1.crt', 'intermediate.crt'], 'cert2.crt'],\n    key: ['cert1.key', 'cert2.key']\n  }\n}, err => {\n  // ...\n})\n```\n\n### SNI Support\n\n[Server Name Indication](https://en.wikipedia.org/wiki/Server_Name_Indication),\nor SNI, lets HTTPS clients announce which hostname they wish to connect to\nbefore the server sends its certificate, enabling the use of the same server for\nmultiple hosts. Although `SNICallback` can be used to support this, you lose the\nconvenient certificate normalization provided by `create-servers`. The `sni`\nconfig option provides an easier way.\n\nThe `sni` option is an object with each key being a supported hostname and each\nvalue being a subset of the HTTPS settings listed above. HTTPS settings defined\nat the top level are used as defaults for the hostname-specific settings.\n\n```js\nconst createServers = require('create-servers');\n\ncreateServers(\n  {\n    https: {\n      port: 443,\n      sni: {\n        'example1.com': {\n          key: '/certs/private/example1.com.key',\n          cert: '/certs/public/example1.com.crt'\n        },\n        'example2.com': {\n          key: '/certs/private/example2.com.key',\n          cert: '/certs/public/example2.com.crt'\n        }\n      }\n    },\n    handler: function (req, res) {\n      res.end('Hello');\n    }\n  },\n  function (errs) {\n    if (errs) {\n      return console.log(errs.https);\n    }\n\n    console.log('Listening on 443');\n  }\n);\n```\n\nUse `*` in the hostname for wildcard certs. Example: `*.example.com`. The\nfollowing settings are supported in the host-specific configuration:\n\n* key\n* cert\n* ca\n* ciphers\n* honorCipherOrder\n* Anything else supported by [`tls.createSecureContext`](https://nodejs.org/dist/latest-v8.x/docs/api/tls.html#tls_tls_createsecurecontext_options)\n\n## NOTE on Security\nInspired by [`iojs`][iojs] and a well written [article][article], we have defaulted\nour [ciphers][ciphers] to support \"perfect-forward-security\" as well as removing insecure\ncipher suites from being a possible choice. With this in mind,\nbe aware that we will no longer support ie6 on windows XP by default.\n\n## Examples\n\n### http\n\n```js\nvar createServers = require('create-servers');\n\nvar servers = createServers(\n  {\n    http: 80,\n    handler: function (req, res) {\n      res.end('http only');\n    }\n  },\n  function (errs) {\n    if (errs) {\n      return console.log(errs.http);\n    }\n\n    console.log('Listening on 80');\n  }\n);\n```\n\n### https\n\n```js\nvar servers = createServers(\n  {\n    https: {\n      port: 443,\n      root: '/path/to/ssl/files',\n      key: 'your-key.pem',\n      cert: 'your-cert.pem',\n      ca: 'your-ca.pem' // Can be an Array of CAs\n    },\n    handler: function (req, res) {\n      res.end('https only');\n    }\n  },\n  function (errs) {\n    if (errs) {\n      return console.log(errs.https);\n    }\n\n    console.log('Listening on 443');\n  }\n);\n```\n\n### http && https\n\n```js\nvar servers = createServers(\n  {\n    http: 80,\n    https: {\n      port: 443,\n      root: '/path/to/ssl/files',\n      key: 'your-key.pem',\n      cert: 'your-cert.pem',\n      ca: 'your-ca.pem' // Can be an Array of CAs\n    },\n    handler: function (req, res) {\n      res.end('http AND https');\n    }\n  },\n  function (errs, servers) {\n    if (errs) {\n      return Object.keys(errs).forEach(function (key) {\n        console.log('Error ' + key + ': ' + errs[key]);\n        if (servers[key]) {\n          servers[key].close();\n        }\n      });\n    }\n\n    console.log('Listening on 80 and 443');\n  }\n);\n```\n\n### http && https (different handlers)\n\n```js\nvar servers = createServers(\n  {\n    http: {\n      port: 80,\n      handler: function (req, res) {\n        res.end('http');\n      }\n    },\n    https: {\n      port: 443,\n      root: '/path/to/ssl/files',\n      key: 'your-key.pem',\n      cert: 'your-cert.pem',\n      ca: 'your-ca.pem', // Can be an Array of CAs\n      handler: function (req, res) {\n        res.end('https');\n      }\n    }\n  },\n  function (errs, servers) {\n    if (errs) {\n      return Object.keys(errs).forEach(function (key) {\n        console.log('Error ' + key + ': ' + errs[key]);\n        if (servers[key]) {\n          servers[key].close();\n        }\n      });\n    }\n\n    console.log('Listening on 80 and 443');\n  }\n);\n```\n\n## Author: [Charlie Robbins](https://github.com/indexzero)\n## License: MIT\n\n[article]: https://certsimple.com/blog/a-plus-node-js-ssl\n[iojs]: https://github.com/iojs/io.js\n[ciphers]: https://iojs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener\n[ALPN negotiation]: https://nodejs.org/api/http2.html#http2_alpn_negotiation\n","_attachments":{},"homepage":"https://github.com/http-party/create-servers","bugs":{"url":"https://github.com/http-party/create-servers/issues"},"license":"MIT"}