{"_id":"@coxy/tcp-router","_rev":"10-8945a9ef4786ad24c80d2d4ce1196399","name":"@coxy/tcp-router","dist-tags":{"latest":"2.3.5"},"versions":{"1.0.0":{"name":"@coxy/tcp-router","version":"1.0.0","keywords":[],"author":"","license":"MIT","_id":"@coxy/tcp-router@1.0.0","maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"dist":{"shasum":"4f1d6b1253f34af91ca53bda20c96b43c4f8c2fb","tarball":"https://registry.npmjs.org/@coxy/tcp-router/-/tcp-router-1.0.0.tgz","fileCount":30,"integrity":"sha512-ipYVt+EZjUq+kynZrtTCMKkI6VbKR0W7yV+0LaDG04LKEzrAQ+k4jIfAC+fX2eLkHL9vGeDrfg4aAJVUSOzR5A==","signatures":[{"sig":"MEYCIQCK8pfPQzp8xGjNxw5Q/S25zQa2Xf91wEFhIrivCf2HwQIhAIQKwSNm0VqrKMkGa79VauFme9zyqY6CCrYG+qGmb43o","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31176,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJid4j9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0ng/+KFUo4vq3hd0G6itAUcrT6jTSSqcFG9lasnNJDmNc/t6Ku4su\r\nXOC+mNnzvVZHgdOwCX9jJ0lPTAnHkQwf32Qs6o7snMbMbM3gp2ixjBLLg4o6\r\nOK4kit7TyBQDrQn8IW2wkIOzyYdnPwAVLNavZI5LMJTShgfmj5e0xa2oPw7i\r\nA9vUfT+oEVB+ZH9JP9O0VLK9xmgrZz1Ori1t1SHg7cWpR1x+ps1cVJ8nh4dI\r\nWArKW27mf4fwRVqkqApqBiA/OPjIkg4prpoG+s/1YUAgSR5jkyc6PXTNV/N8\r\nYENgrvwpVdE7dZ+BgPPsDBFQr/ATlHtm6qzTmjWouevFova100CE5ZGYHLqt\r\nsv7BXNBLtOH7U8k5QUJFtG0gLIJEljGgSFoH6afIBcU9IH+lxOU0z8UvEgu6\r\n0D+Ezy56nY3Qz08PHOJ3cKkYf8m3RfN31FVzAHIliqnipxgWJXTaKqsPv9c+\r\nyeMnvk4/yvejTnq3vnu2yTIWcbwQBpPhs3uZThOMkbaijvGZwWMCoBA0c5hw\r\n6QbOLZxQI0VxTstdF4MXUA7gQYr9DoJ6T90r70nHuZAiu87vaLIxqiwFrX6p\r\neCYfFUb69L2rtqHV5Cg/YX+eV92PJxYwBl90PH6VPgGfulgH5ukOLeOOMWvL\r\nYjlDj6Ivyng5j7y78TTbyF+wr+C0DCAcWAI=\r\n=IO5T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","types":"dist/src/index.d.ts","gitHead":"5a81fe90b7075aa02acfcd27e91095ad802a0beb","private":false,"scripts":{"build":"tsc","example:client":"ts-node src/example/client.ts","example:server":"ts-node src/example/server.ts"},"_npmUser":{"name":"dsshard","email":"dsshard@gmail.com"},"_npmVersion":"8.1.2","description":"TCP router (net module) with aes & diffie-hellman","directories":{},"_nodeVersion":"16.13.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"7.32.0","ts-node":"10.7.0","typescript":"4.6.3","@types/node":"17.0.23","eslint-plugin-node":"11.1.0","eslint-plugin-import":"2.25.4","eslint-plugin-promise":"6.0.0","eslint-config-standard":"16.0.3","@typescript-eslint/parser":"5.17.0","@typescript-eslint/eslint-plugin":"5.17.0"},"_npmOperationalInternal":{"tmp":"tmp/tcp-router_1.0.0_1652001021661_0.4812793013809269","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@coxy/tcp-router","version":"1.0.1","keywords":[],"author":"","license":"MIT","_id":"@coxy/tcp-router@1.0.1","maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"dist":{"shasum":"20f3b1befe43f053f9353a7a30692eb6bbdf0ff2","tarball":"https://registry.npmjs.org/@coxy/tcp-router/-/tcp-router-1.0.1.tgz","fileCount":30,"integrity":"sha512-L6p6Bz4xjLJVwgrhUHOl+dOIOceVC3aJLqivXTVP542K+EeXjuEJdSM9RR8IRAH50gCV36cS/biMOr+GrKqwYw==","signatures":[{"sig":"MEUCIC5RLgQ3R0Z3uEHQ6SyqqhrF9KhbTWwGfkfn6phjiXSgAiEAwzB1QcDPrM2/8szCnkl3F/wUKeUI4pxMiby8s4jWv6o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJid4tlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDhRAAoT6itVlAfiPDglix9cA8vakIAG08+eA9f4LNHVoG6PiQBg1O\r\nYazSzKM7B2GCqaInaHFCqmapglFCa2TzxKfanBL6dj1AGQgPcCH4xP0OXbuv\r\n6GsW/1VIrMcCG4wv2pgxeETKr0YXr28nXJ2oOuLn8n9JkbDZea0SZlvpoZkF\r\nx6abL+quSZ1wKih5UCBnZiAATmXBJdFCoXJ4ALOpG/OE4X5pVnyIFhnLQjqU\r\nAhLs3RBJKckpuNP/vdEYps4O+/r7hIGV1njACX9JHCwN8DKx90AA4QzO5AYo\r\nytV4G+6YIKcVMfONSr1NGrPFieRiC4tkZSbu/A+A711V/FVHFcd1R6HyMj9X\r\nr9rYhtvwIcjgB6dYWZm3eh2xwKT0CGSDHhyFDLskv3FiTDTT3iFenewy0LNl\r\nhotRA8MgsmxyAOF63mUDBFh/TFoHxxODVtwstKlssE26o53aISqLB5nmRb3p\r\ne5PalicBnTiLQiTG1JGL3Qg9l53Dgvsp6VeT5V8JE9CXwucwrBREMPffozBK\r\nuCDr0cbaB2Cesl7xt5zLb5xgXJBIH06Xqg4GTAZpSpkFcooxQq+mIaY1DU4d\r\n8PnJM296bicYcaClYfbwjRx6MKLG/5aNOX5SR3KjOuUZl3+/MdzBHqHTsb+g\r\nEWHytayxsiZf/fr37WAWk3TLZD8J8L8dmng=\r\n=VK57\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","types":"dist/src/index.d.ts","gitHead":"b230f08a45ea0f36f6f46285910e6ffed4336225","private":false,"scripts":{"build":"tsc","example:client":"ts-node src/example/client.ts","example:server":"ts-node src/example/server.ts"},"_npmUser":{"name":"dsshard","email":"dsshard@gmail.com"},"_npmVersion":"8.1.2","description":"TCP router (net module) with aes & diffie-hellman","directories":{},"_nodeVersion":"16.13.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"7.32.0","ts-node":"10.7.0","typescript":"4.6.3","@types/node":"17.0.23","eslint-plugin-node":"11.1.0","eslint-plugin-import":"2.25.4","eslint-plugin-promise":"6.0.0","eslint-config-standard":"16.0.3","@typescript-eslint/parser":"5.17.0","@typescript-eslint/eslint-plugin":"5.17.0"},"_npmOperationalInternal":{"tmp":"tmp/tcp-router_1.0.1_1652001636955_0.02408620789655025","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@coxy/tcp-router","version":"1.0.2","keywords":[],"author":"","license":"MIT","_id":"@coxy/tcp-router@1.0.2","maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"homepage":"https://github.com/dsshard/tcp-router#readme","bugs":{"url":"https://github.com/dsshard/tcp-router/issues"},"dist":{"shasum":"177ff9437a51a3587dc4bc513b89ea6e2672b72e","tarball":"https://registry.npmjs.org/@coxy/tcp-router/-/tcp-router-1.0.2.tgz","fileCount":31,"integrity":"sha512-w62JqCPjydQuviazBTIoTzbv3vuQQ2dkr2y73wapjivh9X4wcveegEFhHafhGRl+Ep6SZpCq9Wz+HVbPIgfTVQ==","signatures":[{"sig":"MEQCIHmZZDMj8ACC2WONi+4NNggRggSwXM5xLo3UTKKGrPvHAiBstwqYnN8CaBzYN/3rPlHdutErsu7w2gJ3Tbnu9JfnGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJid7BPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqExw/+OoM6jrZl71XuCuIvXuGKEUjNTJbAm5z0mkMcRnaLc+ewyQB5\r\neenX9JAxyWO6fSs5LX8m+/8WjMGto2gH5/XG9YEpyBSYf3pJafSkvsolGqOE\r\nu+ZKDV/DOzjSeTwt0LK768H1eR+0kmbASm6TXvlR+524Edv7QOcaBMLBrAdd\r\nLjUIZRXIZOqcTQiln7u3vB41FukB4C5DPUcbM1MXhPLTiwP70XJfPbR2xKWO\r\nQQxWOxHaFLQvigxZTnd19zCM/fpaG0UdGLMLUluVUUKCU7z0CEC2YMrj2OAT\r\ny7hvvsHIFc5r4WChCS/10DDdR8kJcmQwPlhxTPq90/dcykvrV/bMf17GUp45\r\nghpodhLarqjqwl3fByHfWRap5nmkZxjf7q4g02a66zTHqzl65KFPHfxJB/Gv\r\nINO3YI07P7W7f5eUKDBsUofBydqn0ReA+rsQz3yv9VWlv//6Ydop48RAnqEP\r\n+5Iu8iX4ca3HCBR9qNRNUMiivb/bffqrdYHy1QYaXTYLFGSbwEXW2aahqRIh\r\nQYonKO3wJjTXpCLXy4+VC9y8ebMkoJX9TPsLiwI9wt2dldAqvAmf2L5js6N8\r\nvqRmU1QVUYzjKy0xSY03WCqg9UU6TvkRI08p9MLtNpiX6Fl9dSLqIf/Ymq7O\r\nMynrgLRhQ/XQ1QGXoqd8wpSkaTH2uIU8Xog=\r\n=/UdU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","types":"dist/src/index.d.ts","gitHead":"0a8781d2fea6161d9578e1244e6638eb81c76bff","private":false,"scripts":{"build":"tsc","example:client":"ts-node src/example/client.ts","example:server":"ts-node src/example/server.ts"},"_npmUser":{"name":"dsshard","email":"dsshard@gmail.com"},"repository":{"url":"git+https://github.com/dsshard/tcp-router.git"},"_npmVersion":"8.1.2","description":"TCP router (net module) with aes & diffie-hellman","directories":{},"_nodeVersion":"16.13.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"7.32.0","ts-node":"10.7.0","typescript":"4.6.3","@types/node":"17.0.23","eslint-plugin-node":"11.1.0","eslint-plugin-import":"2.25.4","eslint-plugin-promise":"6.0.0","eslint-config-standard":"16.0.3","@typescript-eslint/parser":"5.17.0","@typescript-eslint/eslint-plugin":"5.17.0"},"_npmOperationalInternal":{"tmp":"tmp/tcp-router_1.0.2_1652011087450_0.19365213398767578","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@coxy/tcp-router","version":"2.0.0","keywords":[],"author":{"name":"Steven Green"},"license":"MIT","_id":"@coxy/tcp-router@2.0.0","maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"homepage":"https://github.com/dsshard/tcp-router#readme","bugs":{"url":"https://github.com/dsshard/tcp-router/issues"},"dist":{"shasum":"e5c115fd0bae1794d476154a978df8451bc4cd34","tarball":"https://registry.npmjs.org/@coxy/tcp-router/-/tcp-router-2.0.0.tgz","fileCount":29,"integrity":"sha512-2dqlvec1gWvewHl6zFrTdFHjaFr01tmc6GJnODTTzicTW37BOs8i1UOjC96UJOZSazFg8Urow3OGzb1mD48TSQ==","signatures":[{"sig":"MEQCIH7Qfgw9ivv6sWIgU3zPu3oOnXNfFX53VvJBZDThbLnFAiAVmuh9cQoqf+uIJpWrEkExtk9XNpW6FUenI9lNXFj7dg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQVI6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZeRAAlATcWDGiHUJNCWEgAApWdFqvyMD0QbAh+LW/6ZrHRhxVZKfH\r\nP+KZkeDG1IoAie8e/Qhu4ci54b3X9YMg4M/9JmoaePBRDb+EfNn45gYRGfR5\r\nnKXfHDtTbks+MQuMcwgcAMsJEAAn5Bs8iiGL20i59MxLfRWkLQkU7dWeli8M\r\nOKkhRXGeGGhLJYTWwm8X72HFQxdi6AHk1SFbxR5YlU2sBQ+gEM3vTuYAhEv9\r\nZ/fDCYkbVL+vhX99lhnbDKsTjYgq5KA0sPeP7XEOTnW7xh1/QzZnQQ/WIudA\r\nsei/NctgE9A8TnxkKQ7/EQmWse5Z7Hlti/t8nh4kMiOMjGUwk8hT9xdGsaeq\r\nAeZd0wCV25vBQShu/Ao8/jLTm9crgAG/wPpSM88LMR5VuS3Vyg1mJXT5BMgf\r\nrxOuzz4QZYzM0XG+84uMvsATtktu2cHViIDeRN7netJzNa8L7XLppIi1Q96H\r\nsGpVrzsXjR0d7aPE9GD5fdC2P4n67Pqrptx1oongMGLjB23YnIXDyfnb+FyD\r\nEKy8/gkkZV0nI4eTUW5q6taz9fS6fRX0P6lCowZpi2UXrU244o1st1gJ1C/A\r\nXgQBrSQ6OoJ0vTL2uPB+aBnVv8COe42UJwiM2v7/Ya9Wrfd45IDmkM03/jCt\r\n4I1qZ8VaQMVttemqFYJEC2ChZnpzxyesJE0=\r\n=byI+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"9ca31c9e6058be6a149f5fe916bcbd4709aadfb7","private":false,"scripts":{"build":"tsc","example:client":"ts-node src/example/client.ts","example:server":"ts-node src/example/server.ts"},"_npmUser":{"name":"dsshard","email":"dsshard@gmail.com"},"repository":{"url":"git+https://github.com/dsshard/tcp-router.git"},"_npmVersion":"8.1.2","description":"TCP router (net module) with aes & diffie-hellman","directories":{},"_nodeVersion":"16.13.1","dependencies":{"@coxy/aes-256":"2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.25.0","ts-node":"10.9.1","typescript":"4.8.4","@types/node":"18.8.3","eslint-plugin-n":"15.3.0","@coxy/eslint-config":"1.0.6","eslint-plugin-import":"2.26.0","eslint-plugin-promise":"6.0.1","eslint-config-standard":"17.0.0","@typescript-eslint/parser":"5.*","eslint-plugin-filename-rules":"1.2.0","@typescript-eslint/eslint-plugin":"5.*"},"_npmOperationalInternal":{"tmp":"tmp/tcp-router_2.0.0_1665225274365_0.5504736027452171","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@coxy/tcp-router","version":"2.3.0","keywords":[],"author":{"name":"Steven Green"},"license":"MIT","_id":"@coxy/tcp-router@2.3.0","maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"homepage":"https://github.com/dsshard/tcp-router#readme","bugs":{"url":"https://github.com/dsshard/tcp-router/issues"},"dist":{"shasum":"42fbf839fea450b23168108eb5e6c6ee1de69066","tarball":"https://registry.npmjs.org/@coxy/tcp-router/-/tcp-router-2.3.0.tgz","fileCount":23,"integrity":"sha512-O1Pyn8NHwpjV5usCWaOHTPL3CbRXj+Cc0TRKeaES8y41LJHd4FWbRAgE4aEMeLRRgWNJOb4lIEkF8POTW9MaHg==","signatures":[{"sig":"MEUCIEgCic/hwHNrwEaoVrqYvWwoZXrfZE0fPThn1lX1XynJAiEA5oveLmzOusXgS2WpBHCILDwFdQ9MRAfeXwxhkMJzkKM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39078},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"npm":"please-use-yarn","node":">=18","yarn":"=1"},"gitHead":"5130b0a4effb0dd3b7cf095224a7dca8b90e9919","private":false,"scripts":{"test":"npx jest","build":"tsup","example:bench":"ts-node src/example/bench.ts","example:client":"ts-node src/example/client.ts","example:server":"ts-node src/example/server.ts"},"_npmUser":{"name":"dsshard","email":"dsshard@gmail.com"},"repository":{"url":"git+https://github.com/dsshard/tcp-router.git"},"_npmVersion":"10.8.2","description":"TCP router (net module) with aes & diffie-hellman","directories":{},"sideEffects":false,"_nodeVersion":"20.18.1","browserslist":["> 1%, not dead"],"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"8.4.0","eslint":"8.57.1","ts-jest":"29.3.2","ts-node":"10.9.2","prettier":"3.5.3","typescript":"5.8.3","@types/jest":"29.5.14","@types/node":"22.15.0","eslint-plugin-n":"17.17.0","@coxy/eslint-config":"1.0.6","eslint-plugin-import":"2.31.0","eslint-plugin-promise":"7.2.1","eslint-config-prettier":"10.1.2","eslint-config-standard":"17.1.0","eslint-plugin-prettier":"5.2.6","@typescript-eslint/parser":"8.*","eslint-plugin-filename-rules":"1.3.1","@typescript-eslint/eslint-plugin":"8.*"},"_npmOperationalInternal":{"tmp":"tmp/tcp-router_2.3.0_1745613137917_0.0810258543398723","host":"s3://npm-registry-packages-npm-production"}},"2.3.1":{"name":"@coxy/tcp-router","version":"2.3.1","keywords":[],"author":{"name":"Steven Green"},"license":"MIT","_id":"@coxy/tcp-router@2.3.1","maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"homepage":"https://github.com/dsshard/tcp-router#readme","bugs":{"url":"https://github.com/dsshard/tcp-router/issues"},"dist":{"shasum":"c82986ba0ed06b52d7b49e560945bb7f75d43614","tarball":"https://registry.npmjs.org/@coxy/tcp-router/-/tcp-router-2.3.1.tgz","fileCount":25,"integrity":"sha512-B7vG078j91oIOQdfwFRXSduOiBoW46G3cDmtrHw8VbLgGYUjfwDN8nOF6CGwuI06XMs/FKXx3sZY31Fenfec7A==","signatures":[{"sig":"MEUCIQDfPgzbv7O39VIKqrWRxYl9Tlsf89ofju8/muxrhFx4bwIgKwOhem2f7fdO2xxSF77CHsQAtaZKd4X6lZVDe46kGBg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88097},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"npm":"please-use-yarn","node":">=18","yarn":"=1"},"gitHead":"2a178ac875ed495eef9972d32879df3b784c5ff2","private":false,"scripts":{"test":"npx jest","build":"tsup","example:bench":"ts-node src/example/bench.ts","example:client":"ts-node src/example/client.ts","example:server":"ts-node src/example/server.ts"},"_npmUser":{"name":"dsshard","email":"dsshard@gmail.com"},"repository":{"url":"git+https://github.com/dsshard/tcp-router.git"},"_npmVersion":"10.8.2","description":"TCP router (net module) with aes & diffie-hellman","directories":{},"sideEffects":false,"_nodeVersion":"20.18.1","browserslist":["> 1%, not dead"],"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"8.4.0","eslint":"8.57.1","ts-jest":"29.3.2","ts-node":"10.9.2","prettier":"3.5.3","typescript":"5.8.3","@types/jest":"29.5.14","@types/node":"22.15.0","eslint-plugin-n":"17.17.0","@coxy/eslint-config":"1.0.6","eslint-plugin-import":"2.31.0","eslint-plugin-promise":"7.2.1","eslint-config-prettier":"10.1.2","eslint-config-standard":"17.1.0","eslint-plugin-prettier":"5.2.6","@typescript-eslint/parser":"8.*","eslint-plugin-filename-rules":"1.3.1","@typescript-eslint/eslint-plugin":"8.*"},"_npmOperationalInternal":{"tmp":"tmp/tcp-router_2.3.1_1745621060622_0.7794967060568117","host":"s3://npm-registry-packages-npm-production"}},"2.3.2":{"name":"@coxy/tcp-router","version":"2.3.2","keywords":[],"author":{"name":"Steven Green"},"license":"MIT","_id":"@coxy/tcp-router@2.3.2","maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"homepage":"https://github.com/dsshard/tcp-router#readme","bugs":{"url":"https://github.com/dsshard/tcp-router/issues"},"dist":{"shasum":"343a0d8d8d6821f1f4a10319fd5857b06d7801b0","tarball":"https://registry.npmjs.org/@coxy/tcp-router/-/tcp-router-2.3.2.tgz","fileCount":26,"integrity":"sha512-u/asJjS0Vw6MsNdlleqQ7Q1aiaf88zZ2sowF6NXTC7X6CDer/9NYdZpM4QOKTKhB+EvFf7ITbROS3Wn79hpfXw==","signatures":[{"sig":"MEUCIQD76Tl9j6CtbzfIrlMQMUaxkNruU3M3Lq6Sez2DVBhKlwIgcBDz03xyP+E0LHNTZ5VYKUiNozUqZYLdr/qaV9EfbJ0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":98392},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"npm":"please-use-yarn","node":">=18","yarn":"=1"},"gitHead":"6c1646ec31645c29fd72c194cce9dc212f5ee0b6","private":false,"scripts":{"test":"npx jest","build":"tsup","example:bench":"ts-node src/example/bench.ts","example:client":"ts-node src/example/client.ts","example:server":"ts-node src/example/server.ts"},"_npmUser":{"name":"dsshard","email":"dsshard@gmail.com"},"repository":{"url":"git+https://github.com/dsshard/tcp-router.git"},"_npmVersion":"10.8.2","description":"TCP router (net module) with aes & diffie-hellman","directories":{},"sideEffects":false,"_nodeVersion":"20.18.1","browserslist":["> 1%, not dead"],"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"8.4.0","eslint":"8.57.1","ts-jest":"29.3.2","ts-node":"10.9.2","prettier":"3.5.3","typescript":"5.8.3","@types/jest":"29.5.14","@types/node":"22.15.0","eslint-plugin-n":"17.17.0","@coxy/eslint-config":"1.0.6","eslint-plugin-import":"2.31.0","eslint-plugin-promise":"7.2.1","eslint-config-prettier":"10.1.2","eslint-config-standard":"17.1.0","eslint-plugin-prettier":"5.2.6","@typescript-eslint/parser":"8.*","eslint-plugin-filename-rules":"1.3.1","@typescript-eslint/eslint-plugin":"8.*"},"_npmOperationalInternal":{"tmp":"tmp/tcp-router_2.3.2_1745698908235_0.8913782920727769","host":"s3://npm-registry-packages-npm-production"}},"2.3.3":{"name":"@coxy/tcp-router","version":"2.3.3","keywords":[],"author":{"name":"Steven Green"},"license":"MIT","_id":"@coxy/tcp-router@2.3.3","maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"homepage":"https://github.com/dsshard/tcp-router#readme","bugs":{"url":"https://github.com/dsshard/tcp-router/issues"},"dist":{"shasum":"9f4dfd19144857f2f2027520f1825f8c5b0e298f","tarball":"https://registry.npmjs.org/@coxy/tcp-router/-/tcp-router-2.3.3.tgz","fileCount":26,"integrity":"sha512-4BYEhjMnVkl7JAE/7CvCikCd18wWEwCt3sV1WjCike+M1sgvriQQAFWPyXV0QmRUjW1RO69dXqUF1DrIV1gIFw==","signatures":[{"sig":"MEQCID/F3pbRGWCgBfTzjYNiaEuliCxy9uiLcj98IgZ5Y/cBAiAKA8lSFGWpGDxSxTHFjbmrz98ti3ie/OIqOw4hb6C3lw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":98423},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"npm":"please-use-yarn","node":">=18","yarn":"=1"},"gitHead":"7ac3cc99b99c9ce2c1ff26b7fa4d5cbe249e28b0","private":false,"scripts":{"test":"npx jest","build":"tsup","example:bench":"ts-node src/example/bench.ts","example:client":"ts-node src/example/client.ts","example:server":"ts-node src/example/server.ts"},"_npmUser":{"name":"dsshard","email":"dsshard@gmail.com"},"repository":{"url":"git+https://github.com/dsshard/tcp-router.git"},"_npmVersion":"10.8.2","description":"TCP router (net module) with aes & diffie-hellman","directories":{},"sideEffects":false,"_nodeVersion":"20.18.1","browserslist":["> 1%, not dead"],"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"8.4.0","eslint":"8.57.1","ts-jest":"29.3.2","ts-node":"10.9.2","prettier":"3.5.3","typescript":"5.8.3","@types/jest":"29.5.14","@types/node":"22.15.0","eslint-plugin-n":"17.17.0","@coxy/eslint-config":"1.0.6","eslint-plugin-import":"2.31.0","eslint-plugin-promise":"7.2.1","eslint-config-prettier":"10.1.2","eslint-config-standard":"17.1.0","eslint-plugin-prettier":"5.2.6","@typescript-eslint/parser":"8.*","eslint-plugin-filename-rules":"1.3.1","@typescript-eslint/eslint-plugin":"8.*"},"_npmOperationalInternal":{"tmp":"tmp/tcp-router_2.3.3_1745699034400_0.4848507056211657","host":"s3://npm-registry-packages-npm-production"}},"2.3.4":{"name":"@coxy/tcp-router","version":"2.3.4","keywords":[],"author":{"name":"Steven Green"},"license":"MIT","_id":"@coxy/tcp-router@2.3.4","maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"homepage":"https://github.com/dsshard/tcp-router#readme","bugs":{"url":"https://github.com/dsshard/tcp-router/issues"},"dist":{"shasum":"7e3fac1b23c483279946406ec9713d326b8186af","tarball":"https://registry.npmjs.org/@coxy/tcp-router/-/tcp-router-2.3.4.tgz","fileCount":24,"integrity":"sha512-YWzkZM/A+4jL1YZ7c+29xdIZk9bam3i41e/b0Ne/Cecm806NN870FwcX81V2LPWoN1ohd/PndXKfoZOSgPyjJw==","signatures":[{"sig":"MEYCIQDnbTOJaGJn8hejUIS/6UCMFKgNE8UcanB0Vq2WhL221AIhALozWmdHoJC5xEOXtI5K4Rs2JJXs0zSxzG05EtnJxdel","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":98509},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"npm":"please-use-yarn","node":">=18","yarn":"=1"},"gitHead":"d20bb8b07243e724aa37fbaa2664e365d5f9a97b","private":false,"scripts":{"test":"npx jest","build":"tsup","example:bench":"ts-node src/example/bench.ts","example:client":"ts-node src/example/client.ts","example:server":"ts-node src/example/server.ts"},"_npmUser":{"name":"dsshard","email":"dsshard@gmail.com"},"repository":{"url":"git+https://github.com/dsshard/tcp-router.git"},"_npmVersion":"10.8.2","description":"TCP router (net module) with aes & diffie-hellman","directories":{},"sideEffects":false,"_nodeVersion":"20.18.1","browserslist":["> 1%, not dead"],"engineStrict":true,"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"8.4.0","ts-jest":"29.3.2","ts-node":"10.9.2","typescript":"5.8.3","@types/jest":"29.5.14","@types/node":"22.15.0","@biomejs/biome":"1.9.4"},"_npmOperationalInternal":{"tmp":"tmp/tcp-router_2.3.4_1745707774610_0.33518101765234065","host":"s3://npm-registry-packages-npm-production"}},"2.3.5":{"name":"@coxy/tcp-router","version":"2.3.5","private":false,"description":"TCP router (net module) with aes & diffie-hellman","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup","test":"npx jest","example:server":"ts-node src/example/server.ts","example:client":"ts-node src/example/client.ts","example:bench":"ts-node src/example/bench.ts"},"engines":{"node":">=18","npm":"please-use-yarn","yarn":"=1"},"browserslist":["> 1%, not dead"],"sideEffects":false,"engineStrict":true,"repository":{"url":"git+https://github.com/dsshard/tcp-router.git"},"keywords":[],"author":{"name":"Steven Green"},"license":"MIT","devDependencies":{"@biomejs/biome":"1.9.4","@types/jest":"29.5.14","@types/node":"22.15.0","jest":"29.7.0","ts-jest":"29.3.2","ts-node":"10.9.2","tsup":"8.4.0","typescript":"5.8.3"},"_id":"@coxy/tcp-router@2.3.5","gitHead":"a2cf2f9108b93bd57f77aad7f634601c0e98fb43","bugs":{"url":"https://github.com/dsshard/tcp-router/issues"},"homepage":"https://github.com/dsshard/tcp-router#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-y78uifEW3/j3iQc5YMs6WC0M4fudREw79u9oHDTkU0YJoXfcps3Ij9S+hw1KyWA4d9an80aq6TwC7bFVZ2T1kg==","shasum":"59aabe8cc0865d02c428993a2ba5b0f8e3e1e028","tarball":"https://registry.npmjs.org/@coxy/tcp-router/-/tcp-router-2.3.5.tgz","fileCount":24,"unpackedSize":98508,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG54xN14FuzLYMz5SfHDrRshnb1n//QCkFqCKbrQiAPCAiEA4bbGtsRCNXJSPISfIwjWJQmEuEjwQNUCsmWipFSqRNI="}]},"_npmUser":{"name":"dsshard","email":"dsshard@gmail.com"},"directories":{},"maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tcp-router_2.3.5_1745709721881_0.3766415110868222"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-08T09:10:21.604Z","modified":"2025-04-26T23:22:02.272Z","1.0.0":"2022-05-08T09:10:21.856Z","1.0.1":"2022-05-08T09:20:37.086Z","1.0.2":"2022-05-08T11:58:07.670Z","2.0.0":"2022-10-08T10:34:34.554Z","2.3.0":"2025-04-25T20:32:18.105Z","2.3.1":"2025-04-25T22:44:20.842Z","2.3.2":"2025-04-26T20:21:48.435Z","2.3.3":"2025-04-26T20:23:54.621Z","2.3.4":"2025-04-26T22:49:34.789Z","2.3.5":"2025-04-26T23:22:02.074Z"},"bugs":{"url":"https://github.com/dsshard/tcp-router/issues"},"author":{"name":"Steven Green"},"license":"MIT","homepage":"https://github.com/dsshard/tcp-router#readme","keywords":[],"repository":{"url":"git+https://github.com/dsshard/tcp-router.git"},"description":"TCP router (net module) with aes & diffie-hellman","maintainers":[{"name":"dsshard","email":"dsshard@gmail.com"}],"readme":"# @coxy/tcp-router\n\nType‑safe, encrypted TCP router for Node.js / TypeScript.  \n*ECDH key‑exchange → AES‑256‑GCM → length‑prefix framing → middleware pipeline.*\n\n---\n## Features\n\n* 🔐 **End‑to‑end encryption** – ECDH (prime256v1) handshake, per‑connection key.\n* ⚡ **Zero‑copy framing** – `[UInt32BE length][ciphertext]`  → no splitting/merging bugs.\n* 🛣️ **Middleware pipeline** – similar to Koa/Express, async/await.\n* 🔄 **Auto‑reconnect & queue** – client transparently resends messages after restart.\n* 📦 **Single‑file bundle** – outputs minified CJS + ESM + d.ts.\n\n---\n## Installation\n\n```bash\nnpm i @coxy/tcp-router            # npm\n```\n\n```bash\nyarn add @coxy/tcp-router            # yarn\n```\n\n\n---\n## Quick start\n\n### 1 · Server\n```ts\nimport { TcpServer } from 'tcp-secure-router'\n\nconst server = new TcpServer({\n  port: 1337,\n  secret: 'supersecretstring',\n  whitelist: ['127.0.0.1'],\n})\n\nserver.use('/echo', async (ctx) => {\n  ctx.body = ctx.request           // simply echo back\n})\n\nserver.listen(() => console.log('🔌 listening'))\n```\n\n### 2 · Client\n```ts\nimport { TcpClient } from 'tcp-secure-router'\n\n(async () => {\n  const client = new TcpClient({ port: 1337, secret: 'supersecretstring' })\n  await client.connect()\n  const res = await client.send('/echo', { ping: 1 })\n  console.log(res) // → { ping: 1 }\n})()\n```\n\n---\n## Advanced usage\n\n### Auto‑reconnect demo\n```ts\n// server.ts\nconst srv = new TcpServer({ port: 0, secret: 's' })\nconst PORT = await new Promise<number>(r => srv.listen(() => r((srv.address() as any).port)))\n\n// client.ts\nconst cli = new TcpClient({ port: PORT, secret: 's' })\nawait cli.connect()\n\n// kill & restart server — client.send() will queue, then flush after reconnect\n```\n\n---\n## Scripts\n| command         | description               |\n|-----------------|---------------------------|\n| `npm run dev`   | ts-node watcher (nodemon) |\n| `npm run test`  | Jest + ts-jest            |\n| `npm run build` | tsup → minified bundle    |\n\n---\n## FAQ\n\n### Why not WebSocket?\nNeed pure TCP (load‑balanced behind Nginx stream, no HTTP upgrade), binary framing, and custom crypto.\n\n### How big is the bundle?\n<3 KB minified (both CJS & ESM) with Terser property‑mangling.\n\n### License\nMIT\n\n","readmeFilename":"readme.md"}