{"_id":"toa-router","_rev":"33-81e6ffc54d5730952a1ffdd2390d9da8","name":"toa-router","description":"A trie router for toa.","dist-tags":{"latest":"2.1.3"},"versions":{"0.0.1":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"0.0.1","main":"index.js","repository":{"type":"git","url":"git@github.com:toajs/toa-router.git"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.0","route-trie":"^0.1.x"},"devDependencies":{"gulp":">=3.8.0","gulp-jshint":">=1.8.4","gulp-mocha":">=1.0.0","gulp-sequence":">=0.3.0","http-errors":"^1.2.8","mocha":">=1.21.0","toa":"^0.3.0"},"scripts":{"test":"gulp test"},"ignore":["**/.*","node_modules","test","examples","gulpfile.js"],"gitHead":"d8b6a72f0a9a64679060c270e96253863310c2a0","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@0.0.1","_shasum":"f559d83dfa3906354ae5181a38d7deaf0b2ec495","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"f559d83dfa3906354ae5181a38d7deaf0b2ec495","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-0.0.1.tgz","integrity":"sha512-RrHab97t/f9Ps38gXwowRaJNsM4xB5mEEAQyN2ZcDSk2lfYusQAoj0+wOkMTaH9hMqi+LzSn5+kaWoZkw4UGtg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5ygWGrt0APyDPqq/ALZWal2ARjnGkcwQO/eOCvkqBSAiEA1o2iC0ihT8RdUaOeBg0juhYR9nsf8RpjgqngudtN/wI="}]}},"0.1.0":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"0.1.0","main":"index.js","repository":{"type":"git","url":"git@github.com:toajs/toa-router.git"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.0","route-trie":"^0.1.x"},"devDependencies":{"gulp":">=3.8.0","gulp-jshint":">=1.8.4","gulp-mocha":">=1.0.0","gulp-sequence":">=0.3.0","http-errors":"^1.2.8","mocha":">=1.21.0","toa":"^0.3.0"},"scripts":{"test":"gulp test"},"ignore":["**/.*","node_modules","test","examples","gulpfile.js"],"gitHead":"28db331810651ac09f0b0e80648db197783e8d7d","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@0.1.0","_shasum":"74616a9b534a30bfce7bfd8c9784e2f8e7b75821","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"74616a9b534a30bfce7bfd8c9784e2f8e7b75821","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-0.1.0.tgz","integrity":"sha512-hp6IORVlgXIUxP+R2FN/qRIR0ZrNzxBYSMVQ2b/9oynciivVSRqA0mqj5wEddvwNBoHf5a9kmojqdKMBF9CuOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDi88XEftdkcVv2zFi2iyQsY8z7xt7ezwhG/C0QVL2P4QIgTGEoxTZl4vmy/+apomzULPYlWdGwqLPUzQUNBrTK0WA="}]}},"0.1.1":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"0.1.1","main":"index.js","repository":{"type":"git","url":"git@github.com:toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.0","route-trie":"^0.1.x"},"devDependencies":{"gulp":">=3.8.0","gulp-jshint":">=1.8.4","gulp-mocha":">=1.0.0","gulp-sequence":">=0.3.0","mocha":">=1.21.0","toa":">=0.4.2"},"scripts":{"test":"gulp test"},"ignore":["**/.*","node_modules","test","examples","gulpfile.js"],"gitHead":"d55070c2724170d5dd08787f75efa3484d0a9b3c","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@0.1.1","_shasum":"3db705ba135976a6c07afa656b177a858dbdd813","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"3db705ba135976a6c07afa656b177a858dbdd813","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-0.1.1.tgz","integrity":"sha512-4MBO/wLOBWCFcYDAWwX341TIk2AnbGj0QPhBTMivmlGyg5StTPgNsKSrz3K52NUWSS/xt8MdWmB29631+652/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTHcl7uNdx0fzHvbTeEUc04l/il4MumRSjgVnM/mtr5AIhAJStR0Ta2BwqmR0MC6X+ni6D317XvoD3dYoB1SAHcUH0"}]}},"0.2.0":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"0.2.0","main":"index.js","repository":{"type":"git","url":"git@github.com:toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.0","route-trie":"^0.2.0"},"devDependencies":{"gulp":">=3.8.0","gulp-jshint":">=1.8.4","gulp-mocha":">=1.0.0","gulp-sequence":">=0.3.0","mocha":">=1.21.0","toa":">=0.4.2"},"scripts":{"test":"gulp test"},"ignore":["**/.*","node_modules","test","examples","gulpfile.js"],"gitHead":"85468e7653ca1424b30fd4ab0d069044106a106f","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@0.2.0","_shasum":"434eaae4bc936d64b6218b711dbea0694bd5bb69","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"434eaae4bc936d64b6218b711dbea0694bd5bb69","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-0.2.0.tgz","integrity":"sha512-kOYxV9p+kNzzSEPa+2q78BiPAMqJmIOxoVTwnOdpwBhB7c/aNM1htIQSy5nvHEKX1AwpTC0gJ88oqJ48WoL1ZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCISsaYctG1ZFVxn17YAvuvjJ1VKmc9q2zFMDlW+USssAIhANWtLezQJbJeYXSvYJ1Xu6QhGJoniGvHD5BtIUHm+x6f"}]}},"0.2.1":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"0.2.1","main":"index.js","repository":{"type":"git","url":"git@github.com:toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.0","route-trie":"^0.2.0"},"devDependencies":{"gulp":">=3.8.0","gulp-jshint":">=1.8.4","gulp-mocha":">=1.0.0","gulp-sequence":">=0.3.0","mocha":">=1.21.0","toa":">=0.6.0"},"scripts":{"test":"gulp test"},"ignore":["**/.*","node_modules","test","examples","gulpfile.js"],"gitHead":"efd91a908846c00796b7367fd33018946e164256","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@0.2.1","_shasum":"870bd9ebc888432c86b52230a82d6dd5353216cd","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"870bd9ebc888432c86b52230a82d6dd5353216cd","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-0.2.1.tgz","integrity":"sha512-99+MhGOcOS8B0l1zECP3+PxrKnLolFhb1VnijOqcQ1MtpstP97/Q2J8/UZqp5TDLp4Y3Zwo7D0MUdZN9dKappA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtM4Ewu9OAWvCgvh/C6gsihqfwpuSs1CEu9VPPGsR1UQIhALAgTRZpo5820fzT1okJLPBUp+B27u2MzAUAu9OLtJp5"}]}},"0.3.0":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"0.3.0","main":"index.js","repository":{"type":"git","url":"git@github.com:toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.0","route-trie":"^0.2.0"},"devDependencies":{"gulp":">=3.8.0","gulp-jshint":">=1.8.4","gulp-mocha":">=1.0.0","gulp-sequence":">=0.3.0","mocha":">=1.21.0","toa":">=0.6.0"},"scripts":{"test":"gulp test"},"ignore":["**/.*","node_modules","test","examples","gulpfile.js"],"gitHead":"1de423875b484ac38500fb090c1189295f202cc4","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@0.3.0","_shasum":"54cfb54240cf2d5ed42ff1f08a1a8babf73f2cbe","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"54cfb54240cf2d5ed42ff1f08a1a8babf73f2cbe","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-0.3.0.tgz","integrity":"sha512-9jstA5dCKBZ2eFlHMU7PBC1VjpcPdvJhEWszzV8CY+NUsAVUmb1XhBN24Lix2d0DJW1W0nsQmDTmoaMgYBRdIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZUtGYOPGix5G8YG1uIvoOmUstTvj6WAswJnR4BpJd9gIgTpznq2r+s2FNXACe8R7EXria4iHn3AJtbXqfh3aEdPk="}]}},"1.0.0":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.0.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.1","route-trie":"^1.0.0"},"devDependencies":{"gulp":">=3.8.11","gulp-jshint":">=1.10.0","gulp-mocha":">=2.0.1","gulp-sequence":">=0.3.2","mocha":">=2.2.4","supertest":"^0.15.0","toa":">=0.9.0"},"scripts":{"test":"gulp test"},"ignore":["**/.*","node_modules","test","examples","gulpfile.js"],"gitHead":"d62f553b7f0690c06991d75c3d0dfcf2a3366ec4","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.0.0","_shasum":"8aa93096c45cc8951f0d0957e075a8fe2fff6361","_from":".","_npmVersion":"2.8.3","_nodeVersion":"1.8.1","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"8aa93096c45cc8951f0d0957e075a8fe2fff6361","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.0.0.tgz","integrity":"sha512-C80Qo1UoJkJVtXaatUIHeW0Htb5eEPcOYd/Fz4GWRz5SkgDwMsO6uSbtZ9FzCD8KAktF6BwHvdEoY/e76S5o3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCq8pkgRTS6bvoEs5wpvvO36et3+p/SHPBbSg1eN8dAiwIhALnI//+7rVr+izwJeKxPEgUd8TpqZASa/OoR9OLLksll"}]}},"1.1.0":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.1.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.1","route-trie":"^1.0.0"},"devDependencies":{"gulp":"^3.8.11","gulp-jshint":"^1.11.0","gulp-mocha":"^2.1.0","gulp-sequence":"^0.3.2","mocha":"^2.2.5","supertest":"^1.0.1","toa":"^0.10.0"},"scripts":{"test":"gulp test"},"ignore":["**/.*","node_modules","test","examples","gulpfile.js"],"gitHead":"e8103bb6ad831de0e82a645eb7b4a20375f14f50","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.1.0","_shasum":"27ea810ee31bcdcec00601946b1fe3053160e23a","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.2","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"27ea810ee31bcdcec00601946b1fe3053160e23a","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.1.0.tgz","integrity":"sha512-LXOWGxFtniA+u3N9tnbZ+3a3aacGLdljPKc5UIMRuoLGR1InUu+bynJ1ZIWndl5EcCaJuXYt4BPBMczpKUga6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5NJ96KwKibnjNB0oRmaeKBSC7PWUnzPNgIR3VLEXYoAIge5Lc4E+6a9rmMhY+bDQTgTnc5+66U8Sb1DISiX14VVY="}]},"deprecated":"bug..."},"1.1.1":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.1.1","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.1","route-trie":"^1.0.0"},"devDependencies":{"gulp":"^3.8.11","gulp-jshint":"^1.11.0","gulp-mocha":"^2.1.0","gulp-sequence":"^0.3.2","mocha":"^2.2.5","supertest":"^1.0.1","toa":"^0.10.0"},"scripts":{"test":"gulp test"},"ignore":["**/.*","node_modules","test","examples","gulpfile.js"],"gitHead":"45edf2b831346beb50293293996053f4d7a33a27","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.1.1","_shasum":"6b992ac534d2283f2bf28bdc2df1a74cdcdc8dfc","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.2","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"6b992ac534d2283f2bf28bdc2df1a74cdcdc8dfc","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.1.1.tgz","integrity":"sha512-Y7ER4GnYd+1SY8YY3Xr6ZyWBu/m8AI+9j7Qv5FPaQ8+i0X8soo7d9f/gi/5Lgjav1S85l1zZwVi0A/3koj03mw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHM/glMtA/lU4zzY4tIkReYHSFUOzuQpMT3csrAcknbpAiAeDdiLTK0bf9fhUue6AXepM+bE+EftWA8gSZBY7TQBvA=="}]}},"1.1.2":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.1.2","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.1","route-trie":"^1.0.1"},"devDependencies":{"gulp":"^3.9.0","gulp-mocha":"^2.1.3","gulp-sequence":"^0.4.1","mocha":"^2.2.5","supertest":"^1.1.0","standard":"^5.1.0","toa":"^1.0.0"},"scripts":{"test":"standard && gulp test"},"ignore":["**/.*","node_modules","test","examples","gulpfile.js"],"gitHead":"3c1fa8a4312d305ce21eae25949cb877c544be22","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.1.2","_shasum":"61fb82b1fdaed89faf8ed9c7a85e64cd147f9410","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.2.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"61fb82b1fdaed89faf8ed9c7a85e64cd147f9410","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.1.2.tgz","integrity":"sha512-ztaOjEvvUuoB4R7IKsRopXWSnJDbLFr1IUczG9RL8pjORe2ykPFOJoFdzWTFljCGV1dfmXYO+OK8/6bYi68M+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy3cQtHPyuiuR2eusaSnav1QjLeHJsk8LaCgyu+Yg4ZgIgLWqUxFUdZbJpQB+2McgpyANvf81XxptAkvMORdm26Ok="}]}},"1.2.0":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.2.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.1","route-trie":"^1.1.0"},"devDependencies":{"mocha":"^2.3.4","supertest":"^1.1.0","standard":"^5.4.1","toa":"^1.3.0"},"scripts":{"test":"standard && mocha"},"files":["index.js","README.md"],"gitHead":"7554200531d26a62990a7da6e5be2127af992532","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.2.0","_shasum":"375070918859e282a4decc9ae3f544f60d373b35","_from":".","_npmVersion":"2.14.15","_nodeVersion":"4.2.3","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"375070918859e282a4decc9ae3f544f60d373b35","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.2.0.tgz","integrity":"sha512-rmtbT+y+9yywJCjgfA662qoiTEfDPUXkwvLjoCyotdgq57TnAlrDje9wLCe0+wRBgSFnAEeVvOBofPL/1NZQwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpa4NR/Kd0U3H6QdXjLvLm1iTfzQVKokyw9E4heD8SCQIhAMdr+7qU9uXNbMaYbqHZCzZK4ngPJuYUEH2omcWgufMf"}]}},"1.3.0":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.3.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.2","route-trie":"^1.2.1"},"devDependencies":{"mocha":"^2.3.4","supertest":"^1.1.0","standard":"^5.4.1","toa":"^1.3.2"},"scripts":{"test":"standard && mocha"},"files":["index.js","README.md"],"gitHead":"119f796945574e7275a9de8215cbe9a7ce8fce73","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.3.0","_shasum":"6d204dfacc79c3ec9621313e3b138cf4580f42ec","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"6d204dfacc79c3ec9621313e3b138cf4580f42ec","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.3.0.tgz","integrity":"sha512-Ph7XGNTnkuZjf/oIE6leY4ANanef+zGbddnRHdt+DY20mDvcxbW+SYiXu6y2ceYiRizilfNkmbeYKW5meb77fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIENEBZaKZwgDC7EgTZpcUzXs79/cP7kyg+JHq+noCmvOAiBu5usqtIx5+hBJHgzKgvoTd3OAJjACNvJ/ME1wyW6T1g=="}]}},"1.3.1":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.3.1","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.2","route-trie":"^1.2.5"},"devDependencies":{"standard":"^6.0.8","supertest":"^1.2.0","tman":"^0.5.3","toa":"^1.4.2"},"scripts":{"test":"standard && tman"},"files":["index.js","README.md"],"gitHead":"8727316ee848a12f68c1775dbd2ac518fd731d8b","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.3.1","_shasum":"0cd9e914865f76478cf20c36d16bcd7bfc2e79e0","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"0cd9e914865f76478cf20c36d16bcd7bfc2e79e0","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.3.1.tgz","integrity":"sha512-xwlul6EpMo1HUibXp8xDFG2F1SPyqJo2GgJAqORG4wloblS0f731mblo2x4ronHRjy1fPBgCgt20jvQHhcEaWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDstWj3iV8n3N4MP4cBM7rG1rpBNyjV+/ofo34gRSvZSQIgTtF50qvjTaD6byQKz098WObQJeLfzFmKXqnwhEgk4G8="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/toa-router-1.3.1.tgz_1460190795725_0.8645075978711247"}},"1.3.2":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.3.2","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.2","route-trie":"^1.2.5"},"devDependencies":{"standard":"^7.0.1","supertest":"^1.2.0","tman":"^0.9.4","toa":"^1.4.2"},"scripts":{"test":"standard && tman"},"files":["index.js","README.md"],"gitHead":"4150b7296a44b587679c3d83cd29e479e4f33d12","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.3.2","_shasum":"bb510cdebe2f73c0d0173dd50bc314c43d22ee93","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"bb510cdebe2f73c0d0173dd50bc314c43d22ee93","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.3.2.tgz","integrity":"sha512-hDkdw63WZa41AAz7uOHx4xzBLzOAd+etwFF/S7ZInxTaBnTnOtch1mT0T+W1ungwUc5LP3af2Dew92jnF1aTYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvmp4iOmGXNhN0OBmvb7bNjh/kLFw4vEpNB/WMgMdBLwIhAL94iMcNCjYtwSxPWR5aDfzY8S8NMzu16QALboXu7/el"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/toa-router-1.3.2.tgz_1463043789578_0.5855782793369144"}},"1.3.3":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.3.3","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.2","route-trie":"^1.2.6"},"devDependencies":{"standard":"^7.1.0","supertest":"^1.2.0","tman":"^0.9.6","toa":"^1.4.3"},"scripts":{"test":"standard && tman"},"files":["index.js","README.md"],"gitHead":"1a17e869b77b1dc3d246ce715ae35d8856567039","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.3.3","_shasum":"9581b853b6cd5b0af429675c2a344585953e65f9","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"9581b853b6cd5b0af429675c2a344585953e65f9","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.3.3.tgz","integrity":"sha512-mfdgwW3lyYTKt0quNXGHCvO01dW9e5Kfk7g43Jjce3yfHF/kWz8TdbPSNxt1pS32b9pB2zstniPyNShZoYdtRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8yctDn4Y1gcZ0MK8nct8EAAdqJbzoN8Qlcpo3/YUC4AiBvmofH42EBGe+IWCOyj5eFiNwfnL2xv7m03WBlkN8Mug=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/toa-router-1.3.3.tgz_1463744023740_0.07755645620636642"}},"1.4.0":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.4.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.12.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.2","route-trie":"^1.2.6","thunks":"^4.4.2"},"devDependencies":{"standard":"^7.1.2","supertest":"^2.0.0","tman":"^1.0.4","toa":"^1.8.2"},"scripts":{"test":"standard && tman"},"files":["index.js","README.md"],"gitHead":"3336f5f38a2dc6a117b1e5d014170ebd09d3909a","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.4.0","_shasum":"88cde4cda87078ba945483e00021b0cf6d95e012","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"88cde4cda87078ba945483e00021b0cf6d95e012","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.4.0.tgz","integrity":"sha512-5d31AuBnOf+PORPXn9aBhwaqICoBomn0WIMBu9CvVkOOFo3HOqgOyIj1ni2VsIRR59l+FstzW8fe7hBxBX3BIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF1bpzY9gqU3/5fJ7JPh+0L7yl5jW9IZlEpoBo6AhQCiAiBOX+hlC0H4FBe32QPQKs1Lq/aSl7mgDyuqfS6VRLnXtg=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/toa-router-1.4.0.tgz_1470220881754_0.23271900112740695"}},"1.5.0":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.5.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.12.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.2","route-trie":"^1.2.6","thunks":"^4.5.0"},"devDependencies":{"standard":"^8.0.0","supertest":"^2.0.0","tman":"^1.1.0","toa":"^1.8.7"},"scripts":{"test":"standard && tman"},"files":["index.js","README.md"],"gitHead":"0e5c90a8b9dc83a870e0dbbbf0c60e682b14b065","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.5.0","_shasum":"8104cc3a41c77b49fc03894047e96dc6767647d8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"8104cc3a41c77b49fc03894047e96dc6767647d8","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.5.0.tgz","integrity":"sha512-J8NQX3xPG/+igfClhzHuPqPb+JxGveNWKcFAmNorlcvqLPXAk9U5bcACOFp31hUo0nUZhECPw3IY27wDR6pi6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIXFpiDGHC/ml1pVVlrqCLZFk2vM6BXTdvnC686O/fdwIgRLm3ppLyMPcEhjwlIIB4m8rLHAlmEk5usPQVZyUOyuQ="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/toa-router-1.5.0.tgz_1472124348109_0.3506371178664267"}},"1.5.1":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.5.1","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.12.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.2","route-trie":"^1.2.6","thunks":"^4.5.0"},"devDependencies":{"standard":"^8.0.0","supertest":"^2.0.0","tman":"^1.1.0","toa":"^1.8.7"},"scripts":{"test":"standard && tman"},"files":["index.js","README.md"],"gitHead":"82f4b8390e1b17668d1b89d506122219291713d3","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.5.1","_shasum":"dab08cab751149513f5290f7a66420776c1aa26c","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"dab08cab751149513f5290f7a66420776c1aa26c","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.5.1.tgz","integrity":"sha512-P8fVEUVTvTTDheYJpWhGsmNordf7vcxBCKtJ4gj3xlRR8evWOAaw8Y2wtdq8c2Mh1JlaZYuBIcmWH1NJtL68LQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjHB8P/U7IfH2nU3jCobAXXL7/Flu/CESQLErEax2DJAIhAPaXEDMqO/BX0HazbM+aLP/yC3RT5FCnCFI3gsnvcIlD"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/toa-router-1.5.1.tgz_1472131689628_0.48670970159582794"}},"1.5.2":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"1.5.2","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=0.12.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.2","route-trie":"^1.2.7","thunks":"^4.7.5"},"devDependencies":{"standard":"^8.3.0","supertest":"^2.0.0","tman":"^1.6.0","toa":"^1.8.13"},"scripts":{"test":"standard && tman"},"files":["index.js","README.md"],"gitHead":"0217d685135700e1d746db62731d50142d3fe754","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@1.5.2","_shasum":"b08664e59ee7e3af7d45aeb790c586f7868582c7","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"b08664e59ee7e3af7d45aeb790c586f7868582c7","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-1.5.2.tgz","integrity":"sha512-OAzZv4eMuZ+CFd7QllvTVOVS4xkFSxt0ZiT4muB4QXBSA6U/lwYJayP0DfttqjY0I/dl7//mfqBxtF4sRNqnaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB3WIKiakV+/yxj6GglcOcpmXMLOMk1BuIet4waJrXYNAiEAw4SIca/YpVSrm8AMka2N/tq74tGAZducJ439hu99e4Y="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/toa-router-1.5.2.tgz_1475373368581_0.4916763617657125"}},"2.0.0":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"2.0.0","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=4"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"methods":"^1.1.2","route-trie":"^2.0.2","thunks":"^4.7.5"},"devDependencies":{"standard":"^8.6.0","supertest":"^2.0.1","tman":"^1.6.4","toa":"^2.4.2"},"scripts":{"test":"standard && tman"},"files":["index.js","README.md"],"gitHead":"d763971f89f7fd76d2cbad871145d45c55ba69e3","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@2.0.0","_shasum":"4102a259d6c269aaaa0a2caafa909ccfa6f8cd8e","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"4102a259d6c269aaaa0a2caafa909ccfa6f8cd8e","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-2.0.0.tgz","integrity":"sha512-9eCGYGpZHqxiv1H9KaRlscmoUcMr95v9zTcg5+WGc8Z3qHkL3BSWevlmtoyg59/MfXHMja8o7opYnHQ+cXxbXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOgvJoucP9PXqp4gtjyyO2AJ56Nv1xX8y7xTL9Xx0hOgIhAJ9wGblX/Ydi11QaiHuvKlT5XxEA4RTo4qvfRkekYUnI"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/toa-router-2.0.0.tgz_1482333287398_0.5018980838358402"}},"2.0.1":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"2.0.1","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">=4"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"route-trie":"^2.0.2","thunks":"^4.7.5"},"devDependencies":{"istanbul":"^0.4.5","standard":"^8.6.0","supertest":"^2.0.1","tman":"^1.6.4","toa":"^2.4.2"},"scripts":{"test":"standard && tman","test-cov":"istanbul cover _tman"},"files":["index.js","README.md"],"gitHead":"b9ea58e8dd4711d854ecaa6fda647495b9154929","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@2.0.1","_shasum":"29215241eb898c118032a6847d8d6c7164870bd9","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"29215241eb898c118032a6847d8d6c7164870bd9","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-2.0.1.tgz","integrity":"sha512-YQieSQimUgrNvPt6It2XsjJBQPbGKjq2DcwXJnJU+I5ddt4i86h6RS7+4tb/XC7BhoRbSWj0ST5oe9NF0+2CAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCO9wVBoqatF41CX9rGtlHy9os6h6WszEDWwRMl4KR+eQIhALtbOIkXTCFftL0JdkNEU6IExuVVj2ll1DsLQv3i5T7j"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/toa-router-2.0.1.tgz_1482335103158_0.8471804400905967"}},"2.1.1":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"2.1.1","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">= 4.0.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"route-trie":"^2.1.0","thunks":"^4.7.6"},"devDependencies":{"istanbul":"^0.4.5","standard":"^10.0.2","supertest":"^3.0.0","tman":"^1.6.6","toa":"^2.6.4"},"scripts":{"test":"standard && tman","test-cov":"istanbul cover _tman"},"files":["index.js","README.md"],"gitHead":"431f52cc601f6873d799cb43adedc636083a8fed","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@2.1.1","_shasum":"027fd74ba27c646459c9927680588ebe0f0493aa","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"027fd74ba27c646459c9927680588ebe0f0493aa","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-2.1.1.tgz","integrity":"sha512-M5rlk+buvcxmTa7hmLtom/7ObA6J1TepdZYm3UfUSOlHFZRDYmEqU2qipQnDHZ8hcgoFqvxOlpB5mMfLSgID0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHyrLDnV/fLk+nGcbov5cpXfwU+J0MpZ6GkEy7Lq586gAiAX5gA8ZC8I1Kfe2gYG5HGMNpwdMq+eaWoMmGaAl9CNjA=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/toa-router-2.1.1.tgz_1493191698625_0.3336388289462775"}},"2.1.2":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"2.1.2","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">= 4.5.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"route-trie":"^2.2.0","thunks":"^4.7.6"},"devDependencies":{"istanbul":"^0.4.5","standard":"^10.0.2","supertest":"^3.0.0","tman":"^1.6.7","toa":"^2.6.5"},"scripts":{"test":"standard && tman","test-cov":"istanbul cover _tman"},"files":["index.js","README.md"],"gitHead":"e39c7ea8c2101b08b48034df64ddd78f3eae3437","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@2.1.2","_shasum":"75e005084e24d5c007e9a217d4565e08ecd842ce","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"75e005084e24d5c007e9a217d4565e08ecd842ce","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-2.1.2.tgz","integrity":"sha512-ERA9xjeh/FoOBHbRrxPhsilXOVRGa8HlxvlZwLvcj6VH2j3zPCVOEpDIUavxzmo/OkS1QSxHC+R44+K29yM68A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHF6weNV6gTQMrskSSQHmZZH9cHCtP0dt5pS7lXSuVcqAiAgtV2oxG0wCNIkS3DaRnXgSI5641+EYjfATKEvvjsxBQ=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/toa-router-2.1.2.tgz_1494758648944_0.9072928400710225"}},"2.1.3":{"name":"toa-router","description":"A trie router for toa.","authors":["Yan Qing <admin@zensh.com>"],"version":"2.1.3","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"engines":{"node":">= 4.5.0"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"dependencies":{"route-trie":"^2.2.1","thunks":"^4.8.0"},"devDependencies":{"istanbul":"^0.4.5","standard":"^10.0.2","supertest":"^3.0.0","tman":"^1.6.9","toa":"^2.6.8"},"scripts":{"test":"standard && tman","test-cov":"istanbul cover _tman"},"files":["index.js","README.md"],"gitHead":"dba5f8a49f9c08eacd3685ff15b90d5a56c2d02f","bugs":{"url":"https://github.com/toajs/toa-router/issues"},"_id":"toa-router@2.1.3","_shasum":"68291e7e1d0488d9e8fdd38783cf54eaa7732044","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"zensh","email":"admin@zensh.com"},"maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"dist":{"shasum":"68291e7e1d0488d9e8fdd38783cf54eaa7732044","tarball":"https://registry.npmjs.org/toa-router/-/toa-router-2.1.3.tgz","integrity":"sha512-a12uMhqdlq0Nxpd6rFJ0mBBNslwaovoZcDY2A8frAmrWybVUXKZiovc2x7O7lbOKb/HeharDDGjf75wzT60Q0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHYMS+/2XPdEVzNQ/7FlTBMmC7onWEz0tTFN8f7po2LGAiAgAl0qDj2+l0ZnpbOFxZyZZ7L2/ZI26MXEkQCbO0e60g=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toa-router-2.1.3.tgz_1497443416479_0.04046138399280608"}}},"readme":"# toa-router\n\nA trie router for toa.\n\n[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n[![Downloads][downloads-image]][downloads-url]\n\n## v2 has a breaking change from v1.x https://github.com/toajs/toa-router/tree/v1.5.2\n\n## [Toa](https://github.com/toajs/toa)\n\n## Features\n\n1. Support regexp\n1. Support multi-router\n1. Support suffix matching (package trie)\n1. Support router layer middlewares\n1. Support fixed path automatic redirection\n1. Support trailing slash automatic redirection\n1. Automatic handle `405 Method Not Allowed`\n1. Automatic handle `501 Not Implemented`\n1. Automatic handle `OPTIONS` method\n1. Best Performance\n\n## Demo\n\n```js\nconst Toa = require('toa')\nconst Router = require('toa-router')\n\nconst router = new Router()\nrouter\n  .get('/:name', function () { // sync handler\n    this.body = `${this.method} /${this.params.name}`\n  })\n  .get('/thunk', function (done) { // thunk handler\n    this.body = 'thunk handler'\n    done()\n  })\n  .get('/generator', function * () { // generator handler\n    this.body = yield Promise.resolve('generator handler')\n  })\n  .get('/async', async function () { // async/await handler in Node.js v7\n    this.body = await Promise.resolve('async/await handler')\n  })\n  .otherwise(function () {\n    this.throw(404)\n  })\n\nrouter.define('/user/:id([0-9]+)')\n  .get(function () {\n    this.body = 'Read from:' + this.method + ' ' + this.path\n  })\n  .post(function () {\n    this.body = 'Add to:' + this.method + ' ' + this.path\n  })\n\nconst app = new Toa()\napp.use(router.toThunk())\napp.listen(3000, () => console.log('Listened 3000'))\n```\n\n## Installation\n\n```bash\nnpm install toa-router\n```\n\n## Router Pattern Definitions\n\nFor pattern definitions, see [route-trie](https://github.com/zensh/route-trie).\n\nThe defined pattern can contain six types of parameters:\n\n| Syntax | Description |\n|--------|------|\n| `:name` | named parameter |\n| `:name(regexp)` | named with regexp parameter |\n| `:name+suffix` | named parameter with suffix matching |\n| `:name(regexp)+suffix` | named with regexp parameter and suffix matching |\n| `:name*` | named with catch-all parameter |\n| `::name` | not named parameter, it is literal `:name` |\n\nNamed parameters are dynamic path segments. They match anything until the next '/' or the path end:\n\nDefined: `/api/:type/:ID`\n```\n/api/user/123             matched: type=\"user\", ID=\"123\"\n/api/user                 no match\n/api/user/123/comments    no match\n```\n\nNamed with regexp parameters match anything using regexp until the next '/' or the path end:\n\nDefined: `/api/:type/:ID(^\\d+$)`\n```\n/api/user/123             matched: type=\"user\", ID=\"123\"\n/api/user                 no match\n/api/user/abc             no match\n/api/user/123/comments    no match\n```\n\nNamed parameters with suffix, such as [Google API Design](https://cloud.google.com/apis/design/custom_methods):\n\nDefined: `/api/:resource/:ID+:undelete`\n```\n/api/file/123                     no match\n/api/file/123:undelete            matched: resource=\"file\", ID=\"123\"\n/api/file/123:undelete/comments   no match\n```\n\nNamed with regexp parameters and suffix:\n\nDefined: `/api/:resource/:ID(^\\d+$)+:cancel`\n```\n/api/task/123                   no match\n/api/task/123:cancel            matched: resource=\"task\", ID=\"123\"\n/api/task/abc:cancel            no match\n```\n\nNamed with catch-all parameters match anything until the path end, including the directory index (the '/' before the catch-all). Since they match anything until the end, catch-all parameters must always be the final path element.\n\nDefined: `/files/:filepath*`\n```\n/files                           no match\n/files/LICENSE                   matched: filepath=\"LICENSE\"\n/files/templates/article.html    matched: filepath=\"templates/article.html\"\n```\n\nThe value of parameters is saved on the `matched.params`. Retrieve the value of a parameter by name:\n```\nlet type = matched.params['type']\nlet id   = matched.params['ID']\n```\n\n**Notice for regex pattern** from [route-trie](https://github.com/zensh/route-trie):\n\nAs mentioned above, you may use regular expressions defining node:\n\n```js\nvar node = trie.define('/abc/:name([0-9]{2})')\nassert(trie.match('/abc/47').node === node)\n```\n\nBut due to [JavaScript String Escape Notation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String): `'\\d' === 'd'`, `trie.define('/abc/:name(\\d{2})') === trie.define('/abc/:name(d{2})')`.\n`trie.define` accept a string literal, not a regex literal, the `\\` maybe be escaped!\n\n```js\nvar node = trie.define('/abc/:name(\\d{2})')\ntrie.match('/abc/47')  // null\nassert(trie.match('/abc/dd').node === node)\n```\n\nThe same for `\\w`, `\\S`, etc.\n\nTo use backslash (`\\`) in regular expression you have to escape it manually:\n\n```js\nvar node = trie.define('/abc/:name(\\\\w{2})')\nassert(trie.match('/abc/ab').node === node)\n```\n\n## API\n\n```js\nconst Router = require('toa-router')\n```\n\n### new Router(options)\n\n- `options.root` {String}, optional, default to `/`, define the router's scope.\n- `options.ignoreCase` {Boolean}, optional, default to `true`, ignore case.\n- `options.fixedPathRedirect`: {Boolean}, default to `true`. If enabled, the trie will detect if the current path can't be matched but a handler for the fixed path exists. matched.fpr will returns either a fixed redirect path or an empty string. For example when \"/api/foo\" defined and matching \"/api//foo\", The result matched.fpr is \"/api/foo\".\n- `options.trailingSlashRedirect`: {Boolean}, default to `true`. If enabled, the trie will detect if the current path can't be matched but a handler for the path with (without) the trailing slash exists. matched.tsr will returns either a redirect path or an empty string. For example if /foo/ is requested but a route only exists for /foo, the client is redirected to /foo. For example when \"/api/foo\" defined and matching \"/api/foo/\", The result matched.tsr is \"/api/foo\".\n\n```js\nconst router = new Router()\nconst APIRouter = new Router({root: '/api'})\n```\n\n### Router.prototype.serve(context)\n\nReturns thunk function.\n\n### Router.prototype.define(pattern)\n\nDefine a route with the url pattern.\n\n```js\nrouter.define('/:type/:id')\n  .get(someHandler)\n  .put(someHandler)\n  .post(someHandler)\n  .del(someHandler)\n// support all `http.METHODS`: 'get', 'post', 'put', 'head', 'delete', 'options', 'trace', 'copy', 'lock'...\n```\n\n### Router.prototype.get(pattern, handler...)\n### Router.prototype.put(pattern, handler...)\n### Router.prototype.post(pattern, handler...)\n### Router.prototype.del(pattern, handler...)\n### And all `http.METHODS`\n\nSupport generator handler and async/await handler:\n\n```js\nrouter\n  .get('/:type/:id', function * () {\n    // ...\n  })\n  .put('/:type/:id', async function () {\n    // ...\n  })\n```\n\nSupport one more handlers:\n\n```js\nrouter\n  .get('/:type/:id', handler1, handler2, handler3)\n  .put('/:type/:id', [handler4, handler5, handler6])\n```\n\n### Router.prototype.otherwise(handler...)\n\nSet default route definition that will be used when no other route definition is matched.\n\n### Router.prototype.use(handler)\n\nAdd handler as middleware to this router. They will run before router handler.\n\n```js\nrouter\n  .use(function () {\n    console.log('sync middleware')\n  })\n  .use(function (done) {\n    console.log('sync middleware')\n    done()\n  })\n  .use(function * () {\n    console.log('generator middleware')\n    yield 'something'\n  })\n  .use(async function () {\n    console.log('async/await middleware')\n    await Promise.resolve('something')\n  })\n  .get('/abc', function () {\n    this.body = 'hello!'\n  })\n```\n\n\n### Router.prototype.toThunk()\n\nReturn a thunk function that wrap the router. We can use this thunk function as middleware.\n\n```js\nconst app = Toa()\napp.use(router.toThunk())\n```\n\n### context.params, context.request.params\n\n`this.params` will be defined with any matched parameters.\n\n## License\n\nThe MIT License (MIT)\n\n[npm-url]: https://npmjs.org/package/toa-router\n[npm-image]: http://img.shields.io/npm/v/toa-router.svg\n\n[travis-url]: https://travis-ci.org/toajs/toa-router\n[travis-image]: http://img.shields.io/travis/toajs/toa-router.svg\n\n[coveralls-url]: https://coveralls.io/r/toajs/toa-router\n[coveralls-image]: https://coveralls.io/repos/toajs/toa-router/badge.svg\n\n[downloads-url]: https://npmjs.org/package/toa-router\n[downloads-image]: http://img.shields.io/npm/dm/toa-router.svg?style=flat-square\n","maintainers":[{"name":"zensh","email":"admin@zensh.com"}],"time":{"modified":"2022-06-27T07:26:23.390Z","created":"2014-12-10T14:17:23.408Z","0.0.1":"2014-12-10T14:17:23.408Z","0.1.0":"2014-12-10T14:20:42.016Z","0.1.1":"2014-12-16T14:39:24.831Z","0.2.0":"2014-12-18T08:25:10.148Z","0.2.1":"2014-12-30T14:21:49.582Z","0.3.0":"2015-01-07T01:56:37.651Z","1.0.0":"2015-05-03T11:21:19.948Z","1.1.0":"2015-05-24T09:55:01.993Z","1.1.1":"2015-05-24T11:19:24.550Z","1.1.2":"2015-08-28T13:15:46.703Z","1.2.0":"2015-12-27T09:32:26.196Z","1.3.0":"2016-01-21T11:09:29.691Z","1.3.1":"2016-04-09T08:33:16.132Z","1.3.2":"2016-05-12T09:03:12.070Z","1.3.3":"2016-05-20T11:33:48.343Z","1.4.0":"2016-08-03T10:41:23.823Z","1.5.0":"2016-08-25T11:25:49.979Z","1.5.1":"2016-08-25T13:28:13.559Z","1.5.2":"2016-10-02T01:56:08.843Z","2.0.0":"2016-12-21T15:14:49.281Z","2.0.1":"2016-12-21T15:45:05.088Z","2.1.1":"2017-04-26T07:28:18.870Z","2.1.2":"2017-05-14T10:44:10.832Z","2.1.3":"2017-06-14T12:30:16.572Z"},"homepage":"https://github.com/toajs/toa-router","keywords":["toa","toa-module","toa-middleware","router","trie","trie-router"],"repository":{"type":"git","url":"git+ssh://git@github.com/toajs/toa-router.git"},"bugs":{"url":"https://github.com/toajs/toa-router/issues"},"readmeFilename":"README.md"}