{"_id":"@diamir/nestjs-config","_rev":"4-3f0170fe7e3beb13c7c51ba8bbff5ae3","name":"@diamir/nestjs-config","dist-tags":{"latest":"11.0.3-beta.0"},"versions":{"11.0.0":{"name":"@diamir/nestjs-config","version":"11.0.0","keywords":[],"author":{"name":"Backend","email":"backend@diamir.io"},"license":"ISC","_id":"@diamir/nestjs-config@11.0.0","maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"homepage":"https://github.com/tailoredmedia/backend-nx-skeleton#readme","bugs":{"url":"https://github.com/tailoredmedia/backend-nx-skeleton/issues"},"dist":{"shasum":"d9cd44a8e0f4cc62b2e88c8e27bf849bbb930047","tarball":"https://registry.npmjs.org/@diamir/nestjs-config/-/nestjs-config-11.0.0.tgz","fileCount":11,"integrity":"sha512-tSzF+ij4o4qIem6xfeq74MzZZL/dNiOLT6yHt1aNdtVXQbJXvJS+KwAfrWfpSUOyZuTj3QpCY4IGvrPddaY+og==","signatures":[{"sig":"MEQCIFYzRNxJQEcbtM9F2UBTxhSxGBexBs16T2aOMvPOXseKAiBMo3qHYMIgbSrIZogudKXoX75YYN89nsHpea81hoXaXA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6557},"main":"./src/index.js","type":"commonjs","_from":"file:diamir-nestjs-config-11.0.0.tgz","types":"./src/index.d.ts","engines":{"node":">= 20"},"_npmUser":{"name":"ws-admin","email":"backend@webundsoehne.com"},"_resolved":"/tmp/bafd0299c9f3f84198e0307eccbf4ee0/diamir-nestjs-config-11.0.0.tgz","_integrity":"sha512-tSzF+ij4o4qIem6xfeq74MzZZL/dNiOLT6yHt1aNdtVXQbJXvJS+KwAfrWfpSUOyZuTj3QpCY4IGvrPddaY+og==","repository":{"url":"git+https://github.com/tailoredmedia/backend-nx-skeleton.git","type":"git"},"_npmVersion":"10.9.2","description":"<p align=\"center\">   <a href=\"https://webundsoehne.com\" target=\"blank\">     <img src=\"https://webundsoehne.com/wp-content/uploads/webundsoehne-logo.png\" width=\"320\" alt=\"Web und Söhne - Logo\" />   </a> </p> Web & Söhne is Austria's leading expert in progr","directories":{},"_nodeVersion":"22.13.1","dependencies":{"config":"4.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"reflect-metadata":">= 0.1.0"},"peerDependenciesMeta":{},"_npmOperationalInternal":{"tmp":"tmp/nestjs-config_11.0.0_1778592711903_0.16941507016904933","host":"s3://npm-registry-packages-npm-production"}},"11.0.1":{"name":"@diamir/nestjs-config","version":"11.0.1","keywords":["diamir","nestjs","config"],"author":{"name":"Backend","email":"backend@diamir.io"},"license":"ISC","_id":"@diamir/nestjs-config@11.0.1","maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"homepage":"https://github.com/tailoredmedia/backend-nx-skeleton#readme","bugs":{"url":"https://github.com/tailoredmedia/backend-nx-skeleton/issues"},"dist":{"shasum":"69ecb480dcbc3c1d9f42efeb43afba151c93a950","tarball":"https://registry.npmjs.org/@diamir/nestjs-config/-/nestjs-config-11.0.1.tgz","fileCount":11,"integrity":"sha512-MYc0rJPzPl3TMwyUma9X/FbCwnwGnV0jmFXFYp4RjMHvV6bAMQlsolHJQvtzeiFrd/LN4zdhGnarFbKydAzZrQ==","signatures":[{"sig":"MEUCIQCE1ZJ7qUE3v4k5oymJGsFF6BildcFPlZaj6LSXxvBPvwIgOJVDh3pwF3Wt+9KIUcKfU/N1cnuhtdATa59sD8MqVs4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6502},"main":"./src/index.js","type":"commonjs","_from":"file:diamir-nestjs-config-11.0.1.tgz","types":"./src/index.d.ts","engines":{"node":">= 20"},"_npmUser":{"name":"ws-admin","email":"backend@webundsoehne.com"},"_resolved":"/tmp/59d975d987ea2299965b58c860e56f3b/diamir-nestjs-config-11.0.1.tgz","_integrity":"sha512-MYc0rJPzPl3TMwyUma9X/FbCwnwGnV0jmFXFYp4RjMHvV6bAMQlsolHJQvtzeiFrd/LN4zdhGnarFbKydAzZrQ==","repository":{"url":"git+https://github.com/tailoredmedia/backend-nx-skeleton.git","type":"git"},"_npmVersion":"10.9.8","description":"Wrapper for the config package with additional usage with decorators","directories":{},"_nodeVersion":"22.22.3","dependencies":{"config":"4.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"reflect-metadata":">= 0.1.0"},"peerDependenciesMeta":{},"_npmOperationalInternal":{"tmp":"tmp/nestjs-config_11.0.1_1778851691446_0.4092062022865586","host":"s3://npm-registry-packages-npm-production"}},"11.0.2":{"name":"@diamir/nestjs-config","version":"11.0.2","keywords":["diamir","nestjs","config"],"author":{"name":"Backend","email":"backend@diamir.io"},"license":"ISC","_id":"@diamir/nestjs-config@11.0.2","maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"homepage":"https://github.com/tailoredmedia/backend-nx-skeleton#readme","bugs":{"url":"https://github.com/tailoredmedia/backend-nx-skeleton/issues"},"dist":{"shasum":"d950ac225129a3d98ef2c427a10e0e334c1ffbb9","tarball":"https://registry.npmjs.org/@diamir/nestjs-config/-/nestjs-config-11.0.2.tgz","fileCount":11,"integrity":"sha512-cbT877C8yK1IUSkI/GjISoFtQbSoL1L76klS0jS6R43K7g1yYO+y4TRH0ynFuzDLB/n1B62PUpYUElnp8SEsAA==","signatures":[{"sig":"MEQCIDhFCBDGO+NAzxBjPXeeUcoeUWpAwvO/d0hAcNIKnx2JAiBC0CvsNVKr4xYXub5hS3WQWqku3IeEhcopeOIOGFhZ7A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6503},"main":"./src/index.js","type":"commonjs","_from":"file:diamir-nestjs-config-11.0.2.tgz","types":"./src/index.d.ts","engines":{"node":">= 20"},"_npmUser":{"name":"ws-admin","email":"backend@webundsoehne.com"},"_resolved":"/tmp/3bcce6f3770baa90afd4993cd25aaac3/diamir-nestjs-config-11.0.2.tgz","_integrity":"sha512-cbT877C8yK1IUSkI/GjISoFtQbSoL1L76klS0jS6R43K7g1yYO+y4TRH0ynFuzDLB/n1B62PUpYUElnp8SEsAA==","repository":{"url":"git+https://github.com/tailoredmedia/backend-nx-skeleton.git","type":"git"},"_npmVersion":"10.9.8","description":"Wrapper for the config package with additional usage with decorators","directories":{},"_nodeVersion":"22.22.3","dependencies":{"config":"^4.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"reflect-metadata":">= 0.1.0"},"peerDependenciesMeta":{},"_npmOperationalInternal":{"tmp":"tmp/nestjs-config_11.0.2_1779200934401_0.48758947079055814","host":"s3://npm-registry-packages-npm-production"}},"11.0.3-beta.0":{"name":"@diamir/nestjs-config","version":"11.0.3-beta.0","description":"Wrapper for the config package with additional usage with decorators","author":{"name":"Backend","email":"backend@diamir.io"},"repository":{"type":"git","url":"git+https://github.com/tailoredmedia/backend-nx-skeleton.git"},"license":"ISC","publishConfig":{"access":"public"},"keywords":["diamir","nestjs","config"],"main":"./src/index.js","dependencies":{"config":"^4.1.1"},"peerDependencies":{"reflect-metadata":">= 0.1.0"},"peerDependenciesMeta":{},"engines":{"node":">= 20"},"types":"./src/index.d.ts","type":"commonjs","_id":"@diamir/nestjs-config@11.0.3-beta.0","bugs":{"url":"https://github.com/tailoredmedia/backend-nx-skeleton/issues"},"homepage":"https://github.com/tailoredmedia/backend-nx-skeleton#readme","_integrity":"sha512-J1O1Fi6x8iIJOeuVRx8ipIRHTK+1yuXUT+A4iOERmkQHugA3ahNwORguNVftT9oBjmLFXkplSqSdADm16p4xIg==","_resolved":"/tmp/4e4013af2ee126d4bf3b4be53155275a/diamir-nestjs-config-11.0.3-beta.0.tgz","_from":"file:diamir-nestjs-config-11.0.3-beta.0.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-J1O1Fi6x8iIJOeuVRx8ipIRHTK+1yuXUT+A4iOERmkQHugA3ahNwORguNVftT9oBjmLFXkplSqSdADm16p4xIg==","shasum":"053cb6aa26ec4fa0f016b347f7e536b4eeb9ff9f","tarball":"https://registry.npmjs.org/@diamir/nestjs-config/-/nestjs-config-11.0.3-beta.0.tgz","fileCount":11,"unpackedSize":6510,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH6vwH9NOo1l92sz62ExR7Lz6Hhv97vB0gq3qgHsHj/3AiEA7V94jCsEtHBgYH3nQBVK8bZ5YT2WkOP6va3B3JXKHHw="}]},"_npmUser":{"name":"ws-admin","email":"backend@webundsoehne.com"},"directories":{},"maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nestjs-config_11.0.3-beta.0_1784790090318_0.3859023497772127"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-12T13:31:51.768Z","modified":"2026-07-23T07:01:30.645Z","11.0.0":"2026-05-12T13:31:52.062Z","11.0.1":"2026-05-15T13:28:11.610Z","11.0.2":"2026-05-19T14:28:54.541Z","11.0.3-beta.0":"2026-07-23T07:01:30.460Z"},"bugs":{"url":"https://github.com/tailoredmedia/backend-nx-skeleton/issues"},"author":{"name":"Backend","email":"backend@diamir.io"},"license":"ISC","homepage":"https://github.com/tailoredmedia/backend-nx-skeleton#readme","keywords":["diamir","nestjs","config"],"repository":{"type":"git","url":"git+https://github.com/tailoredmedia/backend-nx-skeleton.git"},"description":"Wrapper for the config package with additional usage with decorators","maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"readme":"# nestjs-config\n\n## Description\n\nThis is a wrapper for the great [config](https://github.com/lorenwest/node-config) library adding typescript support, fallback values and custom decorators.\n\n---\n\n<!-- TOC -->\n* [nestjs-config](#nestjs-config)\n  * [Description](#description)\n  * [Usage](#usage)\n    * [Decorator](#decorator)\n* [Migration](#migration)\n* [Links](#links)\n<!-- TOC -->\n\n---\n\n## Usage\n\nThe basic usage is the same as using the `config` package itself\n\n```typescript\nimport { ConfigService } from '@diamir/nestjs-config'\n\n// get value\nconst config = ConfigService.get<string>('path.to.config', 'fallback')\n\n// check for value\nif (!ConfigSerivce.has('some.other.path')) {\n  // do something\n}\n```\n\n### Decorator\n\n**Important**\n\nThe `@Configurable()` has to be the last decorator before the function is initiated.\n\n```typescript\nimport { ConfigParam, ConfigService, Configurable, InjectConfig } from '@diamir/nestjs-util'\n\nclass CustomService {\n  @SomeOtherDecorator()\n  @Configurable()\n  customMethod (@ConfigParam('path.to.config', 'default-value') config?: string) {\n    // ...\n  }\n}\n```\n\n# Migration\n\nTo migrate from the old `@webundsoehne/nestjs-util` to `@diamir/nestjs-config`:\n- replace the imports\n- switch any injected `ConfigService` to the static methods\n\n# Links\n- [Diamir](https://diamir.io/)\n- [nestjs](https://nestjs.com/)\n- [config](https://github.com/node-config/node-config)\n","readmeFilename":"README.md"}