{"_id":"@aminoeditor/vue-config","_rev":"1-5587aa9d0e8d74502dfab75c0a03e99c","name":"@aminoeditor/vue-config","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@aminoeditor/vue-config","version":"0.0.1","description":"Friendly Config Manager for Vue.js","main":"dist/vue-config.js","scripts":{"test":"echo \"Error: no test specified\" && exit 10","build":"rollup -c rollup.config.js"},"author":{"name":"Eric Uldall"},"license":"ISC","devDependencies":{"@babel/plugin-proposal-export-default-from":"^7.10.1","@rollup/plugin-commonjs":"^12.0.0","@vue/compiler-sfc":"^3.0.0-beta.14","bili":"^4.10.0","rollup":"^2.12.0","rollup-plugin-vue2":"^0.8.1","vue":"^2.6.11","vue-template-compiler":"^2.6.11"},"dependencies":{"deepmerge":"^4.2.2"},"repository":{"type":"git","url":"git+https://github.com/aminoeditor/vue-config.git"},"keywords":["vue","config","javascript"],"bugs":{"url":"https://github.com/aminoeditor/vue-config/issues"},"homepage":"https://github.com/aminoeditor/vue-config#readme","gitHead":"6fd9a77eb3bae3d9c48d0dc07cca8221c5a80fae","_id":"@aminoeditor/vue-config@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"thelettereproduction","email":"ericuldall@gmail.com"},"dist":{"integrity":"sha512-+1puPaSruK3kdwfsgtQZtZuXQCcjjWipU6Fi1HOM91YWysPhNzYtz6T7GcfRzm3tLywWtF3/QUe/HzIK5Pxr4g==","shasum":"546e2fb6fdc906fb478f657d2431547f90defa19","tarball":"https://registry.npmjs.org/@aminoeditor/vue-config/-/vue-config-0.0.1.tgz","fileCount":3,"unpackedSize":3562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEiRqCRA9TVsSAnZWagAA5D8P/0FPKAFnQ8tuaguOUgyS\nYu9ExwxYRIeQT43eko/u+DCKdHaedYwyfaQ8S2h2sxrc5kDMIeMdjHALrgiO\niOuA96/BvSox0VDChhUbSJ7UAbyz6+2x6ga9JLB6uWTTVYnJdbAa2C/S/Te1\nqdCjWWnsG3+GGgW6JP1GzmJNOSdRu9SOpPxwXBzRjLATN2d9eFxx1OT2W5KO\nLOfmntePaTxLnVQVhgPyH9CzoF3bTL2V1BqiR9oHXvv26jmH/zRMgJrJ+Jkz\nt+dFWEHtwUeB9hwl2zCWzgX280bxwJiW25ER9xhfETXTT6en1e6/TvLWj2Si\nAuZSZ60Fw04mBZgwOA925sdtm3OhPcwfvolPTYDltLNfzKf+vvUp1PU/Aaz6\niNGIWuQ6q2clNc7rMHiTRTFx2h+nbqGLsp7Pdg+d2WNjq7kGYvB8VC+T4bln\nu7Y6xpZN1xj6Whu0D5XKcZOO5QKc94F8kn1j6J5m8YhO+uMBdPAk7/rnxNDm\n9Xi2w8oIApHsKqErIUa7TJzi2jKGtJpiE44lBwX8GOqjsLVx2RKhHAUr9XTJ\nJ1HbRyPhDzAwpXwnot9+x892OAuqF5Tt8rLHcWZrT00Y5RHXECPJ2WUwkwwv\nfDavx65udnvd5jz5IO8bxe0mKcgZFM1gV8trLc/xPaRI7lcUqoq8OOYb8lig\nyrAn\r\n=JxMF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAjZSztqB593v6zoWZCfv45CIa0iZGCpBBQ2nWPrESgTAiEA+NB5V3YGU58/zn/pkDbEX0Csz+s8/k00C975J5u2QEU="}]},"maintainers":[{"name":"thelettereproduction","email":"ericuldall@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-config_0.0.1_1595024490521_0.7257474928123171"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-17T22:21:30.269Z","0.0.1":"2020-07-17T22:21:30.676Z","modified":"2022-04-04T13:49:23.729Z"},"maintainers":[{"name":"thelettereproduction","email":"ericuldall@gmail.com"}],"description":"Friendly Config Manager for Vue.js","homepage":"https://github.com/aminoeditor/vue-config#readme","keywords":["vue","config","javascript"],"repository":{"type":"git","url":"git+https://github.com/aminoeditor/vue-config.git"},"author":{"name":"Eric Uldall"},"bugs":{"url":"https://github.com/aminoeditor/vue-config/issues"},"license":"ISC","readme":"# Vue Config\n## Easy config management across all vue components versioned by environment\n\n**Install**\n```\nnpm install --save @aminoeditor/vue-config\n```\n\n**Usage**\n*main.js*\n\n```\nimport Vue from 'vue';\n\nimport VueConfig from '@aminoeditor/vue-config';\nimport * as configList from '@/config';\n\nVue.use(VueConfig, {\n    configList\n});\n```\n--------\n\n*config.js*\n\n```\nconst defaults = {\n    foo: 'bar',\n    sub: {\n        a: [{foo: 'bar'}]\n    }\n};\n\nconst development = {\n    foo: 'dev',\n    sub: {\n        a: [{foo: 'baz'}]\n    }\n};\n\nconst production = {\n    foo: 'baz'\n};\n\nexport { defaults, development, production }\n```\n\n**Notes**\nThe config plugin will look for the following options;\n\n```\n{\n    configList: {\n        defaults: { }, //default configs\n        [env]: { }, //config key matching the value of NODE_ENV\n    }\n}\n```\n\nConfigs will cascade loading defaults, then overriding with configs from the specific environment file\n\n**Accessing Configs**\n*In any component*\n\n```\n<script>\n{\n\tname: 'MyComponent',\n\tmounted () {\n\t\tconsole.log(this.$config.get('foo', 'fallback value can go here in case foo is not set')); //returns a single config top level key with getter\n\t\tconsole.log(this.$config.get()); //returns the entire merged config object\n\t\tconsole.log(this.$config.get().sub.a[0].foo); // this may be a more convenient way to access a single deep key OR\n\t\tconsole.log(this.$config.get('sub').a[0].foo); // this works too\n\t}\n}\n</script>\n```\n","readmeFilename":"README.md"}