{"_id":"connect-no-www","_rev":"9-7f3b160aee1334525fe0497623e64f9b","name":"connect-no-www","description":"Simple no-www redirection as connect middleware","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"connect-no-www","description":"Simple no-www redirection as connect middleware","version":"0.1.0","author":{"name":"Vincent Woo","email":"me@vincentwoo.com","url":"http://vincentwoo.com"},"main":"./index.js","dependencies":{"connect":"*"},"engines":{"node":"*"},"directories":{"lib":"."},"files":[""],"repository":{"type":"git","url":"git@github.com:vincentwoo/connect-no-www.git"},"homepage":"https://github.com/vincentwoo/connect-no-www","_id":"connect-no-www@0.1.0","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.2","_defaultsLoaded":true,"dist":{"shasum":"2cbe7c21eea1ea8ac21ebe6a1d241e2f437941bc","tarball":"https://registry.npmjs.org/connect-no-www/-/connect-no-www-0.1.0.tgz","integrity":"sha512-iSih8kWVqQbI2YM79TF7xlNWw4jGB3py/qTxvt0Hl1WDjtiVSY1XdqQlaKFjd0ji552OZ4DhFtx8U8ISe9D7mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEezxcOjsIy73kUmTH+9UyMMb2vPh+MwAu8kpc6V04g/AiAdq0ENIJVUXbFvw9F4BXUWJXwdY8whhvnXGsXQelzZcw=="}]}},"0.1.1":{"name":"connect-no-www","description":"Simple no-www redirection as connect middleware","version":"0.1.1","author":{"name":"Vincent Woo","email":"me@vincentwoo.com","url":"http://vincentwoo.com"},"main":"./index.js","dependencies":{},"engines":{"node":"*"},"directories":{"lib":"."},"files":[""],"repository":{"type":"git","url":"git@github.com:vincentwoo/connect-no-www.git"},"homepage":"https://github.com/vincentwoo/connect-no-www","_npmUser":{"name":"vincentwoo","email":"me@vincentwoo.com"},"_id":"connect-no-www@0.1.1","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"12de5760af0c4b7dfa6fab14ce7cad9533d0baae","tarball":"https://registry.npmjs.org/connect-no-www/-/connect-no-www-0.1.1.tgz","integrity":"sha512-bB8XlUZD4moEG4cfN6cMWEU7vQTc+Ovro1RHbR2SHxnYRTKFKGt7SXTGxuV73FtteA80/6G1CfuaZaMB1ToznA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZj34nNG3Zur/MLLCa1XTj21YbCVYmeRb3hZe9s+/w/QIhAI1LnvkZTcqbFjGpfUp4DsMJGQe/mlBTLm/Lb6srTwkA"}]},"readme":"connect-no-www\r\n--------------\r\n\r\nConnect middleware to redirect clients from www.yourhost.com to yourhost.com\r\n\r\nUsage:\r\n\r\n    npm install connect-no-www\r\n\r\n    nowww = require('connect-no-www');\r\n    nowww(secure); // returns middlware, true if https, false or optional otherwise\r\n    \r\nExample:\r\n\r\n    var connect = require('connect')\r\n      , nowww = require('connect-no-www')\r\n      , fs = require('fs')\r\n      , options = {\r\n          key: fs.readFileSync('ryans-key.pem'),\r\n          cert: fs.readFileSync('ryans-cert.pem')\r\n        };\r\n\r\n    // https\r\n    connect.createServer(options, \r\n      nowww(true)\r\n    ).listen(443);\r\n\r\n    // http\r\n    connect.createServer(\r\n      nowww(false)\r\n    ).listen(80);\r\n","maintainers":[{"name":"vincentwoo","email":"me@vincentwoo.com"}]},"0.1.2":{"name":"connect-no-www","description":"Simple no-www redirection as connect middleware","version":"0.1.2","author":{"name":"Vincent Woo","email":"me@vincentwoo.com","url":"http://vincentwoo.com"},"main":"./index.js","dependencies":{},"engines":{"node":"*"},"directories":{"lib":"."},"files":[""],"repository":{"type":"git","url":"git@github.com:vincentwoo/connect-no-www.git"},"homepage":"https://github.com/vincentwoo/connect-no-www","readme":"connect-no-www\r\n--------------\r\n\r\nConnect middleware to redirect clients from www.yourhost.com to yourhost.com\r\n\r\nUsage:\r\n\r\n    npm install connect-no-www\r\n\r\n    nowww = require('connect-no-www');\r\n    nowww(secure); // returns middlware, true if https, false or optional otherwise\r\n\r\nExample:\r\n\r\n    var connect = require('connect')\r\n      , nowww = require('connect-no-www')\r\n      , fs = require('fs')\r\n      , options = {\r\n          key: fs.readFileSync('ryans-key.pem'),\r\n          cert: fs.readFileSync('ryans-cert.pem')\r\n        };\r\n\r\n    // deduce from request (looks at req.connection.encrypted or forwarded header)\r\n    connect.createServer(\r\n      nowww()\r\n    ).listen(80);\r\n\r\n    // https always\r\n    connect.createServer(options,\r\n      nowww(true)\r\n    ).listen(443);\r\n\r\n    // http always\r\n    connect.createServer(\r\n      nowww(false)\r\n    ).listen(80);\r\n","readmeFilename":"README.md","_id":"connect-no-www@0.1.2","dist":{"shasum":"085bcab26c7b50a75c5867a21fabbc1758ee8bcd","tarball":"https://registry.npmjs.org/connect-no-www/-/connect-no-www-0.1.2.tgz","integrity":"sha512-AvS8pe9rTMBrDYwVWIeF5gPRNp1C57Krc/WM5Up24kOI8fEahQDEX3xJincSrop/ZArPWVRf20LAXqgs3jkQEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6y9KTEJ0LnRT+Bdj+ok0v5iQtOTnQ60EAxA3nG7e5yQIgUgQOflncZepze0D1SnMK5os1rBqhztBUuUZsZEAdu0Y="}]},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"vincentwoo","email":"me@vincentwoo.com"},"maintainers":[{"name":"vincentwoo","email":"me@vincentwoo.com"}]}},"maintainers":[{"name":"vincentwoo","email":"me@vincentwoo.com"}],"time":{"modified":"2022-06-13T21:38:21.293Z","created":"2011-05-13T22:29:07.251Z","0.1.0":"2011-05-13T22:29:07.627Z","0.1.1":"2012-09-23T19:58:48.009Z","0.1.2":"2013-04-28T07:00:26.737Z"},"author":{"name":"Vincent Woo","email":"me@vincentwoo.com","url":"http://vincentwoo.com"},"repository":{"type":"git","url":"git@github.com:vincentwoo/connect-no-www.git"}}