{"_id":"@bviale/typescript-di","_rev":"1-b7dcff57a3d118946c53ac6fb297ce97","name":"@bviale/typescript-di","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bviale/typescript-di","version":"1.0.0","description":"A very light library to handle dependency injection with Typescript decorators","main":"./dist/main.js","typings":"./dist/main.d.ts","types":"./dist/main.d.ts","scripts":{"start":"tsc -w","build":"npm run clean && tsc","clean":"rimraf dist","prepare":"rimraf dist && tsc","pretest":"npm run build","test":"jest --config ./test/jest.config.js --coverage --no-cache"},"repository":{"type":"git","url":"git+https://github.com/bviale/typescript-di.git"},"keywords":["typescript","di","javascript","dependency injection"],"author":{"name":"@bviale"},"devDependencies":{"@types/jest":"^26.0.22","codecov":"^3.8.1","jest":"^26.6.3","rimraf":"^3.0.2","ts-jest":"^26.5.4","typescript":"^4.1.2"},"license":"MIT","bugs":{"url":"https://github.com/bviale/typescript-di/issues"},"homepage":"https://github.com/bviale/typescript-di#readme","dependencies":{"reflect-metadata":"^0.1.13"},"gitHead":"5d9d91fbbba495094a414eb957cdf0c6bec77f41","_id":"@bviale/typescript-di@1.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-8zrUn9LU1DRT5pVVFQJ5+hWfUI+7iMtg1KxmD8ppd+Dee8jEe1hZ5FV0/JXA7CwYusTuBFO+ZlM1meaOFdc5Wg==","shasum":"7bd2354cb49eb6b2b5541948ed47a0109dd736f7","tarball":"https://registry.npmjs.org/@bviale/typescript-di/-/typescript-di-1.0.0.tgz","fileCount":9,"unpackedSize":8634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZfopCRA9TVsSAnZWagAAnBIP/3BPLaj7lwOi8wlcz7Mf\nKzhBGOaFqz+hV2DRTfMQtIKDCGgUnpU9fwM2F2IXoGXr6kI5KXpSwWr/ifP/\nNd1SKm7D+FqdTADkiXiUai9uJqnhVJx99Nc7oeq6Ctm0PCSETaacgDEQXIHX\nx3iawDSB9bY7wCD06HCDoM5IV1HYaL62gmKMvGJ+YwyhyyKn8Rexbv7BisBC\nrJB5BykYfU/JXeT6lBVTTUGV8L7ZE43E/dw9R1VZ9DzR/nhwTgAcc3phQO5W\nVQs23shZAaMxuAmR0FBFirY22P78YMREM7qR/Ms+qwrssakOf643JWuuCMYu\n+0t/dqUvRz4qVnIUVZIU/DaMoH/2M+f3+ZhQscICgY0Iy9BB8ZVvaBN5ghlb\nZMGJT9yqueYU85/2FvyFsbt0+xO9P/6fH3H+18Qye2taTZpitnv0LhdDWdf6\nQRnP0BYH3pRUOA43FdlIXbIFVbazR5VyeGT9dymnFNySTmYSFIXlu3dPVzJU\nj/0uz8rQ/75bkWO0GEJLAuNkLhrCDATt6/FxK9lfStkqbYrZ+s0XqwjdwCfB\nK4w6iCPdE7CZgpbMCAyPUv4RdR/CPaRTyzCC6l28fYXeXbeCGGEtdU5AXngu\nAWle51lKaczVWcjpZTVdZw97HBvEqHIybSZQaE5qvF3ThEV08VZhaf2kRdsv\n7r/2\r\n=9ksg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAITKzm9RvTVz3gHcxwWjxy2OmEV4wLh1bUXxQaumuACAiEAzvEF7oNZ57VIvdOni0FIXhUVJVgMvhQLw8NdzNn97JY="}]},"_npmUser":{"name":"bviale","email":"baptiste.viale@outlook.com"},"directories":{},"maintainers":[{"name":"bviale","email":"baptiste.viale@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typescript-di_1.0.0_1617295912920_0.3942322656478241"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-01T16:51:52.871Z","1.0.0":"2021-04-01T16:51:53.089Z","modified":"2022-04-04T21:17:04.133Z"},"maintainers":[{"name":"bviale","email":"baptiste.viale@outlook.com"}],"description":"A very light library to handle dependency injection with Typescript decorators","homepage":"https://github.com/bviale/typescript-di#readme","keywords":["typescript","di","javascript","dependency injection"],"repository":{"type":"git","url":"git+https://github.com/bviale/typescript-di.git"},"author":{"name":"@bviale"},"bugs":{"url":"https://github.com/bviale/typescript-di/issues"},"license":"MIT","readme":"# Dependency Injection decorators for Typescript\nA very light library to handle dependency injection with Typescript decorators using the Angular `@Service` way.\n\nResolves the dependencies between services and allow the decorated services to be retrieved using the `ServiceLocator` singleton.\n\nCan be used in all kinds of Typescript projects such as React.\n\n## Usage\n\n```typescript\n@Service\nclass LoginService {\n\n}\n\n@Service\nclass AuthenticationService {\n    // Will be automatically injected\n    constructor (private loginService: LoginService) { }\n}\n\nconst instance = ServiceLocator.instance.getService(AuthenticationService) as AuthenticationService;\n```\n","readmeFilename":"README.md"}