{"_id":"@chaoyangnz/app-config","_rev":"2-2e1ba45dc9a229d0a36d20763618b5f1","name":"@chaoyangnz/app-config","dist-tags":{"latest":"0.3.3"},"versions":{"0.3.0":{"name":"@chaoyangnz/app-config","version":"0.3.0","description":"Application properties/json/yaml config like Spring boot does. Integrated with Angular and NestJS","author":{"name":"Chao Yang","email":"chao@yang.to"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cloudaffine/app-config.git"},"main":"index.js","scripts":{"build":"npm run build:lib","build:lib":"tsc --outDir lib --module commonjs","clean":"rimraf dist es lib coverage","typecheck":"tsc --noEmit","lint":"tslint --project tsconfig.json --format stylish","format":"prettier '**/*.{md,js,jsx,json,ts,tsx}' --write","test":"jest --env=jsdom --coverage","test:watch":"jest --env=jsdom --watch --updateSnapshot","prebuild":"npm run clean","postbuild":"rimraf {lib,es}/**/__tests__ {lib,es}/**/*.{spec,test}.{js,d.ts,js.map} && cp -rf package.json lib && cp -rf *.md lib","posttest":"npm run typecheck && npm run lint","preversion":"npm test","postversion":"git push && git push --tags","dist":"npm run build && cd lib && npm publish --access public"},"keywords":["application.properties","application.yaml","application.json","angular","nestjs"],"dependencies":{"java-properties":"^1.0.2","lodash":"^4.17.15","mime-types":"^2.1.26","properties":"^1.2.1","tslib":"^1.9.3","yaml":"^1.8.3"},"devDependencies":{"@angular/common":"^9.0.7","@angular/core":"^9.0.7","@nestjs/common":"^7.0.4","@nestjs/core":"^7.0.4","@types/jest":"^23.0.0","@types/lodash":"^4.14.149","@types/mime-types":"^2.1.0","@types/node":"^8.0.0","@types/yaml":"^1.2.0","dts-bundle":"^0.7.2","jest":"^23.6.0","pascal-case":"^2.0.1","prettier":"^1.13.7","rimraf":"^2.6.1","rollup":"^0.66.6","rollup-plugin-commonjs":"^9.1.0","rollup-plugin-node-builtins":"^2.1.0","rollup-plugin-node-globals":"^1.1.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-sourcemaps":"^0.4.1","rollup-plugin-terser":"^3.0.0","rxjs":"^6.5.4","semver":"^6.3.0","ts-jest":"~23.10.0","tslint":"^5.11.0","tslint-config-prettier":"^1.13.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.4.5","utility-types":"^3.10.0"},"bugs":{"url":"https://github.com/cloudaffine/app-config/issues"},"homepage":"https://github.com/cloudaffine/app-config#readme","_id":"@chaoyangnz/app-config@0.3.0","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-A17I0tqxxYhCM78yO/k3sy5ho8og7YLQdPnD3wP2KXM89AwOTx/1ah6JrHZNo+ypT731e1KNGsTv8dOWSXO8cg==","shasum":"bd09137e5427651d6fdc98e580c019b9234672f8","tarball":"https://registry.npmjs.org/@chaoyangnz/app-config/-/app-config-0.3.0.tgz","fileCount":45,"unpackedSize":74638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNyMlCRA9TVsSAnZWagAAdWoP/RjE823AaXvaNS2QGb3D\n8W8FUW6ZUevbK10R0CNkvJ4gbdSwTNxjhKgMXjw9MXIawIG8X1MzM8/wD1Vd\n5fx4Me9n9K+NmbbFMhfdUYV33OThhuwzVIUxYxoRpOjuf/sODFDzsTJEPt0e\n/6m+AxbdF4AgqwW8TnAkGa745LGp8ny01j0QKNFEEv/otFU0KGzUFvMkqWYI\nmXFcDWY5uIvYLWbDGCTjzvwpmBBfDqRSaz0pZAuWrrMITGRsYXZZdiSlaJhF\n9jmSo1Vl5dg+GqCf2HRlR8Rhjx5XSPiLYkR3cKuLw9AfhhZQ7S3ifrVqdaEL\nWoaAUbHT54mQ72TNrNjgvZi9vLaSw4yebeLlat4AGfbFQvWxd+IBCy774gae\nOmZ+OQcizo7S6ECAUmgKymz8pYkj5j5/vd5y4z+LM+6yO6d9lP4mgjpqZIUJ\nk+HPZUT4VZNBcnuyIIKHHyruKavpY97yILcS4D1+e10oySHvxaCHpNTpIQic\n9bv1xmRyD/kgQNtTlBFyEvEPR6uthXrGwLpKJliq3G8qPBDNnpyvMoWeqrMC\nP1M9vkLx4eYkzDaVLGZs3S7kUGaQbBu0wEm2gOWB0AteDzqWX5+VEiB55k6C\ngiKnZDd85vDrsA+hYInRZYLA9eDkcs80WYOqArTRCHRzmXK7D2/jaQx68+of\nuUGV\r\n=OEwV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHnYD64sgldapsldlf13p3jssYIuU6kg2+lFTCdorqxXAiAvjknwT73vdESRJjukiq8hSdgmiLu/LSs/FEXuAaS8Jw=="}]},"_npmUser":{"name":"chaoyangnz","email":"chaoyang.nz@gmail.com"},"directories":{},"maintainers":[{"name":"chaoyangnz","email":"chaoyang.nz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-config_0.3.0_1614226212532_0.03213890305542866"},"_hasShrinkwrap":false},"0.3.3":{"name":"@chaoyangnz/app-config","version":"0.3.3","description":"Application properties/json/yaml config like Spring boot does. Integrated with Angular and NestJS","author":{"name":"Chao Yang","email":"chao@yang.to"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cloudaffine/app-config.git"},"main":"index.js","scripts":{"build":"npm run build:lib","build:lib":"tsc --outDir lib --module commonjs","clean":"rimraf dist es lib coverage","typecheck":"tsc --noEmit","lint":"tslint --project tsconfig.json --format stylish","format":"prettier '**/*.{md,js,jsx,json,ts,tsx}' --write","test":"jest --env=jsdom --coverage","test:watch":"jest --env=jsdom --watch --updateSnapshot","prebuild":"npm run clean","postbuild":"rimraf {lib,es}/**/__tests__ {lib,es}/**/*.{spec,test}.{js,d.ts,js.map} && cp -rf package.json lib && cp -rf *.md lib","posttest":"npm run typecheck && npm run lint","preversion":"npm test","postversion":"git push && git push --tags","dist":"npm run build && cd lib && npm publish --access public"},"keywords":["application.properties","application.yaml","application.json","angular","nestjs"],"dependencies":{"java-properties":"^1.0.2","lodash":"^4.17.15","mime-types":"^2.1.26","properties":"^1.2.1","tslib":"^1.9.3","yaml":"^1.8.3"},"devDependencies":{"@angular/common":"^9.0.7","@angular/core":"^9.0.7","@nestjs/common":"^7.0.4","@nestjs/core":"^7.0.4","@types/jest":"^23.0.0","@types/lodash":"^4.14.149","@types/mime-types":"^2.1.0","@types/node":"^8.0.0","@types/yaml":"^1.2.0","dts-bundle":"^0.7.2","jest":"^23.6.0","pascal-case":"^2.0.1","prettier":"^1.13.7","rimraf":"^2.6.1","rollup":"^0.66.6","rollup-plugin-commonjs":"^9.1.0","rollup-plugin-node-builtins":"^2.1.0","rollup-plugin-node-globals":"^1.1.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-sourcemaps":"^0.4.1","rollup-plugin-terser":"^3.0.0","rxjs":"^6.5.4","semver":"^6.3.0","ts-jest":"~23.10.0","tslint":"^5.11.0","tslint-config-prettier":"^1.13.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.4.5","utility-types":"^3.10.0"},"bugs":{"url":"https://github.com/cloudaffine/app-config/issues"},"homepage":"https://github.com/cloudaffine/app-config#readme","_id":"@chaoyangnz/app-config@0.3.3","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-t0X1A9AeGYjZa84beNOFxzDFvxJs2OwNb0Xutij9/0lCsB0pAZvisi9Sie2GdSCRMYRXIpU2EfP6YOaV9/CSPg==","shasum":"a67828896e39ce9de682bb67fafcf728a9477c04","tarball":"https://registry.npmjs.org/@chaoyangnz/app-config/-/app-config-0.3.3.tgz","fileCount":45,"unpackedSize":74638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgN0hvCRA9TVsSAnZWagAAe/MP/2i2dYY9gVCBySu/afjf\nW5/+UmxNBnVU8YUKBuwVdX8iNgmkb7GSmy9eHNA76MaDE+KGGks8FfpmMHse\nS9KbO71xI4yN79gFrbrnz53DJd92rgfQDEZHNbeVGztXhGzthcKWoj8JaKgo\ndbw+M7tmTqGAP60Ab4+hENXf/3C2schJW0Q0JuGQ0QqfyUVXJyUru76DCz2W\n1p9fKuCjSNjD7Whj2hsVposdC/zBgHk2a2JWu0cKXxspHRa76AoZZ1WQBGXT\nF/xnW0lHwhVcuYTKFADdtv+82fXfvgDQAhdruZBdhPDVdTvyCUrB9YWZZV/d\nNDwl2Fx/zY3CGiYQ67mBZ3PIEd1vavzRJKbotBi8JcdYiQNmejKjR2g59pdN\nliYjZ6rguNGIyDdxQdpPtIvx+X5p6tLO26MKVgQoWQ6ZNbIw5XuJS1MbtDVo\ntiMGs9gFWATL4TPKzI76R7YGezcn8VOT2MFbujeACraOA78a6dNrIcpi4ms6\n2/0rdxa0yzgapLmU911xrZ7iif591Bz/GHX31kAmQZMXBGrlYjJ8akDb+9sM\nyNX3kYGwW7GprpxayDwRn5K3iZqqZP3qtyUKFxGCdrW5MEC7g8EPxVBKaBHo\naXoWHcWI1wYHVmSESjLirYSRAbon21nchHVUskR9NPjgznkDreWpoKoDiKJM\nvlzQ\r\n=l/e/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5kfbv7S/9LzLGXikChCt0NQWkEVAR2SY4I5zSM3H/RAiEA5PIJjAllpSlpFeID5/DLdclVtgHv0CguA0WoBHID/GI="}]},"_npmUser":{"name":"chaoyangnz","email":"chaoyang.nz@gmail.com"},"directories":{},"maintainers":[{"name":"chaoyangnz","email":"chaoyang.nz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-config_0.3.3_1614235759607_0.16011261189166714"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-25T04:10:12.476Z","0.3.0":"2021-02-25T04:10:12.726Z","modified":"2022-04-04T22:31:24.588Z","0.3.3":"2021-02-25T06:49:19.739Z"},"maintainers":[{"name":"chaoyangnz","email":"chaoyang.nz@gmail.com"}],"description":"Application properties/json/yaml config like Spring boot does. Integrated with Angular and NestJS","homepage":"https://github.com/cloudaffine/app-config#readme","keywords":["application.properties","application.yaml","application.json","angular","nestjs"],"repository":{"type":"git","url":"git+https://github.com/cloudaffine/app-config.git"},"author":{"name":"Chao Yang","email":"chao@yang.to"},"bugs":{"url":"https://github.com/cloudaffine/app-config/issues"},"license":"MIT","readme":"# App config service for Angular and NestJS\n\n## Install\n\n```\nnpm i @cloudaffine/app-config\n```\n\n## Angular\n\nIn your `AppModule`\n```\nimport { ConfigModule } from '@cloudaffine/app-config/angular';\nimport { APP_INITIALIZER } from '@angular/core';\n\n@NgModule({\n    imports: [\n        ConfigModule.forRoot({\n            browser: {\n                url: '/config.json'\n            },\n            server: {\n                paths: ['./config.yaml']\n            }\n        })\n    ],\n    providers: [\n        {\n            provide: APP_INITIALIZER\n            useFactory: ConfigModule.initializer,\n            multi: true\n        }\n    ]\n})\nexport class AppModule {}\n```\n\nThen in your service or component, optional you can specify a type as the config schema.\n\n```\n@Injectable()\nexport class SomeService {\n    constructor(private configService: ConfigService<any>) {}\n\n    func() {\n        const aa = this.configService.config.aa;\n    }\n}\n```\n\n## NestJS\n\nIn your `AppModule`\n```\nimort { ConfigModule } from '@cloudaffine/app-config/nestjs';\n\n@Module({\n    imports: [\n        ConfigModule.forRoot({\n            paths: ['./config.yaml']\n        })\n    ]\n})\nexport class AppModule {}\n```\n\nThen in your service or component, optional you can specify a type as the config schema.\n\n```\n@Injectable()\nexport class SomeService {\n    constructor(private configService: ConfigService<any>) {}\n\n    func() {\n        const aa = this.configService.config.aa;\n    }\n}\n```\n\n\n","readmeFilename":"README.md"}