{"_id":"@bylive/nestjs","_rev":"5-f97d997e5870dead5ccbed99ec1c266e","name":"@bylive/nestjs","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"@bylive/nestjs","version":"1.0.0","keywords":["@bylive/nestjs","koa","koa-nestjs","nestjs"],"author":"","license":"ISC","_id":"@bylive/nestjs@1.0.0","maintainers":[{"name":"beyonds","email":"1119879311@qq.com"}],"dist":{"shasum":"f66f47534a07ec3e23283acf5aa2bbe3dc9bc484","tarball":"https://registry.npmjs.org/@bylive/nestjs/-/nestjs-1.0.0.tgz","fileCount":14,"integrity":"sha512-w/+26s64dB23G8+s2+cYODv2sKubuqgm4nx4rUtB8PPfid0SmaPtmmJr/eclevU185C8mI+pggMmWeRmOou07A==","signatures":[{"sig":"MEUCIEAyHdblRNzQBRZoIgwSVigpHr3zRfhlK/4Ky7lfIm9lAiEA0Ih2Ogi333ZuzHC5hYW9ncVmn9JxEMrooSEtzil4ifQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21754},"main":"dist/index.js","_from":"file:bylive-nestjs-1.0.0.tgz","types":"./dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc","watch":"npx tsc --watch"},"_npmUser":{"name":"beyonds","email":"1119879311@qq.com"},"_resolved":"C:\\Users\\11198\\AppData\\Local\\Temp\\42b4cd418c41152d9443b7db083cbb29\\bylive-nestjs-1.0.0.tgz","_integrity":"sha512-w/+26s64dB23G8+s2+cYODv2sKubuqgm4nx4rUtB8PPfid0SmaPtmmJr/eclevU185C8mI+pggMmWeRmOou07A==","_npmVersion":"8.11.0","description":"```typescript\r import { Module, Injectable } from '@bylive/ioc';\r import { Controller, GET, Query } from '@bylive/router';\r import { KoaNestTs, Logger } from '@bylive/nestjs';","directories":{},"_nodeVersion":"16.15.1","dependencies":{"@bylive/ioc":"^1.0.0","@bylive/router":"^1.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/nestjs_1.0.0_1683818766958_0.9561286515644944","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@bylive/nestjs","version":"1.0.1","keywords":["@bylive/nestjs","koa","koa-nestjs","nestjs"],"author":"","license":"ISC","_id":"@bylive/nestjs@1.0.1","maintainers":[{"name":"beyonds","email":"1119879311@qq.com"}],"dist":{"shasum":"132ff3f06ce08cb83ab7e64022d408aeeb86f955","tarball":"https://registry.npmjs.org/@bylive/nestjs/-/nestjs-1.0.1.tgz","fileCount":14,"integrity":"sha512-bvvGH1AjjMPnmqBxb8Pzdz5uCDon/NGHpeO5D/RQIGIx9sOt9r5BYuBMR69sPCXhI/kAZ9K2QTGLlzmSQMaKEw==","signatures":[{"sig":"MEUCIQCBa+DmTzTAnoNzdDGRvnK8Sj2Xhx/PGX/v+S3AeIo1EwIgXtzOjAbZU2z0tB0vBmnbEQB+V37Z8nLJ10ua2pzUfzM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21893},"main":"dist/index.js","_from":"file:bylive-nestjs-1.0.1.tgz","types":"./dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc","watch":"npx tsc --watch"},"_npmUser":{"name":"beyonds","email":"1119879311@qq.com"},"_resolved":"C:\\Users\\11198\\AppData\\Local\\Temp\\cee55bdc3b41ed85209f43b4db5c6f4c\\bylive-nestjs-1.0.1.tgz","_integrity":"sha512-bvvGH1AjjMPnmqBxb8Pzdz5uCDon/NGHpeO5D/RQIGIx9sOt9r5BYuBMR69sPCXhI/kAZ9K2QTGLlzmSQMaKEw==","_npmVersion":"8.11.0","description":"![](./koa-nestjs.svg)","directories":{},"_nodeVersion":"16.15.1","dependencies":{"@bylive/ioc":"^1.0.0","@bylive/router":"^1.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"peerDependencies":{"koa":">=2.0.0","koa-router":">=7.0.0","reflect-metadata":">=0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/nestjs_1.0.1_1683983699137_0.47967323816413865","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@bylive/nestjs","version":"1.0.2","keywords":["@bylive/nestjs","koa","koa-nestjs","nestjs"],"author":"","license":"ISC","_id":"@bylive/nestjs@1.0.2","maintainers":[{"name":"beyonds","email":"1119879311@qq.com"}],"dist":{"shasum":"14b30c9fabe8bae308dedf489a68966d9c85fdc7","tarball":"https://registry.npmjs.org/@bylive/nestjs/-/nestjs-1.0.2.tgz","fileCount":14,"integrity":"sha512-bCRWUlAauGAwkhzHiuLRG2fSry96fP2g0y4j6VI5GXyeaZnef1azB6adkyMuxhjOplaREEIB0bTxqK97IWGCrw==","signatures":[{"sig":"MEUCIQD9KjxI73DjJvS5Oez8kDfctkBGLHW9+b5Y3rK9v+tzqAIgM+8W0rKlaPUEFqR503dmLWthBglemB8DOocy4/BcUUw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21971},"main":"dist/index.js","_from":"file:bylive-nestjs-1.0.2.tgz","types":"./dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc","watch":"npx tsc --watch"},"_npmUser":{"name":"beyonds","email":"1119879311@qq.com"},"_resolved":"C:\\Users\\11198\\AppData\\Local\\Temp\\cd1cc6a3c89b8ebe6e8af5000067a819\\bylive-nestjs-1.0.2.tgz","_integrity":"sha512-bCRWUlAauGAwkhzHiuLRG2fSry96fP2g0y4j6VI5GXyeaZnef1azB6adkyMuxhjOplaREEIB0bTxqK97IWGCrw==","_npmVersion":"8.11.0","description":"![](./koa-nestjs.svg)","directories":{},"_nodeVersion":"16.15.1","dependencies":{"@bylive/ioc":"^1.0.0","@bylive/router":"^1.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"peerDependencies":{"koa":">=2.0.0","koa-router":">=7.0.0","reflect-metadata":">=0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/nestjs_1.0.2_1720014597475_0.9848476120174188","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@bylive/nestjs","version":"1.1.0","keywords":["@bylive/nestjs","koa","koa-nestjs","nestjs"],"author":"","license":"ISC","_id":"@bylive/nestjs@1.1.0","maintainers":[{"name":"beyonds","email":"1119879311@qq.com"}],"dist":{"shasum":"a4820d686e506c1b22fdb5cf03e8640c9da2f349","tarball":"https://registry.npmjs.org/@bylive/nestjs/-/nestjs-1.1.0.tgz","fileCount":16,"integrity":"sha512-O1ACr7bykjK/6UgZIV2s9jG4AuuQLyz1opyU3quLw6z/Y23pKb2WSt9ATkMPBVd3n8qET08wXbJttVdF0lvBuA==","signatures":[{"sig":"MEQCIEaJQLXJofdHVdnWgIQVhM7d89Joh+vlquBaDXmD52+1AiBxz8KMby/cG9Ju/TaEl0Q5ZHYC+8xmKfMBek6xZSF19w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22103},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"1b934bb421bbaa1f38cac7fb2a0ff1112051e873","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc","watch":"npx tsc --watch"},"_npmUser":{"name":"beyonds","email":"1119879311@qq.com"},"_npmVersion":"8.11.0","description":"![](./koa-nestjs.svg)","directories":{},"_nodeVersion":"18.3.0","dependencies":{"@bylive/ioc":"workspace:^1.0.0","@bylive/router":"workspace:^1.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"peerDependencies":{"koa":">=2.0.0","koa-router":">=7.0.0","reflect-metadata":">=0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/nestjs_1.1.0_1721747410715_0.9287667850502239","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@bylive/nestjs","version":"1.1.1","keywords":["@bylive/nestjs","koa","koa-nestjs","nestjs"],"author":"","license":"ISC","_id":"@bylive/nestjs@1.1.1","maintainers":[{"name":"beyonds","email":"1119879311@qq.com"}],"dist":{"shasum":"09f22e6d7dc58ab2715f3e517bcecde134db7aba","tarball":"https://registry.npmjs.org/@bylive/nestjs/-/nestjs-1.1.1.tgz","fileCount":16,"integrity":"sha512-OV96gMCq+dv4Kt/T/nn3uwnMSOmZ3hyMMdHfN314N1N4EBR/tFcUSswOWwJAl7RpYvJQ4tF+MYckwyQ6b10xZA==","signatures":[{"sig":"MEYCIQDPqY/woRtQUiO41chKX4Y0nDEs6AsBerAXJSBraOToggIhAOAtuxEB44ebRlDh1e3Z076VqiiUgsQWM5dpCwDFpe1Y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22082},"main":"dist/index.js","_from":"file:bylive-nestjs-1.1.1.tgz","types":"./dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npx tsc","watch":"npx tsc --watch"},"_npmUser":{"name":"beyonds","email":"1119879311@qq.com"},"_resolved":"C:\\Users\\11198\\AppData\\Local\\Temp\\e097445a73cca0850a738edaaab7a1e9\\bylive-nestjs-1.1.1.tgz","_integrity":"sha512-OV96gMCq+dv4Kt/T/nn3uwnMSOmZ3hyMMdHfN314N1N4EBR/tFcUSswOWwJAl7RpYvJQ4tF+MYckwyQ6b10xZA==","_npmVersion":"8.11.0","description":"![](./koa-nestjs.svg)","directories":{},"_nodeVersion":"18.3.0","dependencies":{"@bylive/ioc":"^1.0.0","@bylive/router":"^1.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"peerDependencies":{"koa":">=2.0.0","koa-router":">=7.0.0","reflect-metadata":">=0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/nestjs_1.1.1_1721826729469_0.557069422649225","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@bylive/nestjs","version":"1.1.2","description":"![](./koa-nestjs.svg)","main":"dist/index.js","keywords":["@bylive/nestjs","koa","koa-nestjs","nestjs"],"author":"","license":"ISC","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"dependencies":{"@bylive/ioc":"^1.0.0","@bylive/router":"^1.0.0"},"peerDependencies":{"koa":">=2.0.0","koa-router":">=7.0.0","reflect-metadata":">=0.1.1"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","watch":"npx tsc --watch","build":"npx tsc"},"types":"./dist/index.d.ts","_id":"@bylive/nestjs@1.1.2","_integrity":"sha512-qLxWWFLs1X5frR8wWw99HfMRAGH1Re1+vf8DHf6BCoeYANK9XVpZIVnDOyFjBb34Aj3gL02qKnYr1Z/81XIYvg==","_resolved":"C:\\Users\\11198\\AppData\\Local\\Temp\\48e3a4eef7f87eef9ef4d72a847196a0\\bylive-nestjs-1.1.2.tgz","_from":"file:bylive-nestjs-1.1.2.tgz","_nodeVersion":"18.3.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-qLxWWFLs1X5frR8wWw99HfMRAGH1Re1+vf8DHf6BCoeYANK9XVpZIVnDOyFjBb34Aj3gL02qKnYr1Z/81XIYvg==","shasum":"8bdfd4fde572d573a79760b698f4dc6b7f0ae0fc","tarball":"https://registry.npmjs.org/@bylive/nestjs/-/nestjs-1.1.2.tgz","fileCount":16,"unpackedSize":22548,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDizg6Lu0yPNg8mpZp2IO3E87tdNRKPpUSBoiIEVZU34wIhAOKnuMsjHWncXar8/qitGcAzD4jbEY8A2wc5rIdIGIK1"}]},"_npmUser":{"name":"beyonds","email":"1119879311@qq.com"},"directories":{},"maintainers":[{"name":"beyonds","email":"1119879311@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs_1.1.2_1722268233276_0.6644323848374734"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-11T15:26:06.891Z","modified":"2024-07-29T15:50:33.693Z","1.0.0":"2023-05-11T15:26:07.149Z","1.0.1":"2023-05-13T13:14:59.305Z","1.0.2":"2024-07-03T13:49:57.694Z","1.1.0":"2024-07-23T15:10:10.861Z","1.1.1":"2024-07-24T13:12:09.618Z","1.1.2":"2024-07-29T15:50:33.434Z"},"license":"ISC","keywords":["@bylive/nestjs","koa","koa-nestjs","nestjs"],"description":"![](./koa-nestjs.svg)","maintainers":[{"name":"beyonds","email":"1119879311@qq.com"}],"readme":"# @bylive/nestjs\r\n\r\n![](./koa-nestjs.svg)\r\n\r\n### 示例一\r\n\r\n```typescript\r\nimport { Module, Injectable } from '@bylive/ioc';\r\nimport { Controller, GET, Query } from '@bylive/router';\r\nimport { KoaNestTs, Logger } from '@bylive/nestjs';\r\n\r\n// 服务\r\n@Injectable()\r\nexport class UserServer {\r\n  find(optoin: Record<string, any> = {}) {\r\n    return { name: 'user1' };\r\n  }\r\n}\r\n\r\n// 控制器\r\n@Controller('user')\r\nexport class UserController {\r\n  constructor(private userServer: UserServer) {}\r\n  @GET()\r\n  list(@Query() query: any) {\r\n    return this.userServer.find();\r\n  }\r\n}\r\n\r\n// 模块\r\n@Module({\r\n  imports: [],\r\n  controllers: [UserController],\r\n  providers: [UserServer],\r\n})\r\nexport class appModule {}\r\n\r\nfunction start() {\r\n  const app = KoaNestTs.create(appModule, { prefix: '/api' });\r\n  app.listen(8080, () => {\r\n    Logger.info('app is runing in prot 8080');\r\n  });\r\n}\r\nstart();\r\n```\r\n","readmeFilename":"README.md"}