{"_id":"@adobe/aio-cna-core-config","_rev":"144-5f3814cec06d944b42e1bcfee389f58b","name":"@adobe/aio-cna-core-config","dist-tags":{"latest":"1.0.14"},"versions":{"1.0.13":{"name":"@adobe/aio-cna-core-config","version":"1.0.13","author":{"name":"Adobe Inc."},"license":"Apache-2.0","_id":"@adobe/aio-cna-core-config@1.0.13","maintainers":[{"name":"meryllblanchet","email":"meryll@adobeio.com"},{"name":"moritzraho","email":"raho.mr@gmail.com"},{"name":"justinedelson","email":"justin@justinedelson.com"},{"name":"icaraps","email":"icaraps@hotmail.com"},{"name":"dkstevekwak","email":"steveguac@gmail.com"},{"name":"ashryan","email":"sayhi@ashryan.io"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"praschetan","email":"cprasad@adobe.com"},{"name":"nporter-adbe","email":"nporter@adobe.com"},{"name":"aaronius","email":"aaron@aaronhardy.com"},{"name":"hirenoble","email":"hirenanandshah@outlook.com"},{"name":"benjamind","email":"ben@delarre.net"},{"name":"yoshikinoko","email":"yoshikinoko@gmail.com"},{"name":"goya","email":"brettrudd@gmail.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"alexmirea","email":"alexandru.daniel.mirea@gmail.com"},{"name":"purplecabbage","email":"purplecabbage@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"kerrishotts","email":"kerrishotts@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"macdonst","email":"simon.macdonald@gmail.com"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"abhinavsaraswat","email":"absarasw@adobe.com"},{"name":"aemsites","email":"meyer@adobe.com"},{"name":"anjankaur","email":"anjankaur01.mkr@gmail.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"jfkhoury","email":"jfkhoury@gmail.com"},{"name":"jileesh","email":"jileeshsathyan@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"asteed","email":"andrewsteed@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"adobe-activation","email":"Engineering-Admins@adobe.com"},{"name":"target-admin","email":"ciocanu@adobe.com"},{"name":"adobe-behance","email":"sedunn@adobe.com"},{"name":"stevegill","email":"stevengill97@gmail.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"filmaj","email":"maj.fil@gmail.com"}],"homepage":"https://github.com/adobe/aio-cna-core-config#readme","bugs":{"url":"https://github.com/adobe/aio-cna-core-config/issues"},"dist":{"shasum":"5dd846a01abf52cd0a8426b6c7865e1699c6bd71","tarball":"https://registry.npmjs.org/@adobe/aio-cna-core-config/-/aio-cna-core-config-1.0.13.tgz","fileCount":8,"integrity":"sha512-dFOjqyaqe+kT3w9HYCY8lK9gSWLFNFZkQgGxvrAblnyE2rPCOSOA7a8+7MxU20BRNQyeUhphgw9BMIKYXBDvAA==","signatures":[{"sig":"MEUCIQCV2tw6HrgIzxO4sPmOiJZILpcUcb7nSg7e75ND5rA+QgIgPL5ueGzfyxch8n2aLQaK1hlWLmqhNfbOZDRc4WORMP8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdOU3bCRA9TVsSAnZWagAAoRAP/3dgRchiWUxw5ngl3BwR\nELo+XbItHVYhRMQwvUa+rNjC9HTB0qex445++PzRRKxnpldQ6OnFTkj8HgSj\n8KGCaXQJoNnyGvVfPe8UnD2TcygSgtTvCgEitPgQmKeqIbw59Z871gEFh9yW\nDyVL2YgGwQjO699opej1cCYHDiarbxhKjFDVEN9cNIXE18/Z7cOO1lAtTEnx\nrbs6n2j7y1L1cCfqKgba2EB533BEJxPhVV+H2u41d9+VX314dYGpCGzuA9hc\n8hfim0OM+axQkv33jT5Azr5/tGedVZsUM10I6v+LDS0P0bJUz2mlp8/eBDiA\n+AVb2Xx9tOXgJZwQHJopeGod8vsO4epq5rV3UWUwqSeVVG96gFk+Y7nGmMor\n04d+UZV9wyjiYzmwbo+hMOwpSk/lgRu9LmcizbeQcvKLXrzZ+zkIFhD8geGW\nVTuX53WrH5KaXlhrjoYvXvp1Myov6on68a6/ThdIU+0T0T1cpniVrSiTO681\n4GkhukYcGWXI17TEP+DZzvmsd3PDr7e4vN3rwrqeGOz8gXW3bjaJb6hz25/C\nV1MANy31PsFzrX8maxuFfiz6Vi0w95iHgPfFSpYUx4rNnKT93qKskbsjUgnQ\nvmX8N/VBTiVp6quxFl/VSA8LdiOsXaf6u/FhDdJUOhcmedbvDl9J1sjofrfO\nfLbb\r\n=Joft\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./src","engines":{"node":">=8.10.0"},"gitHead":"4aef824f81288b989783fb63e586e69d7caf5cba","scripts":{"test":"eslint . && jest  --coverage"},"_npmUser":{"name":"shazron","email":"shazron@gmail.com"},"repository":{"url":"git+https://github.com/adobe/aio-cna-core-config.git","type":"git"},"_npmVersion":"6.9.0","description":"Adobe I/O Configuration Module","directories":{},"_nodeVersion":"8.16.0","dependencies":{"debug":"^4.1.1","hjson":"^3.1.2","js-yaml":"^3.13.0","deepmerge":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.5.0","eslint":"^6.0.1","codecov":"^3.3.0","mock-stdin":"^0.3.1","babel-runtime":"^6.26.0","jest-plugin-fs":"^2.9.0","eslint-plugin-jest":"22.9.0","eslint-plugin-node":"^9.0.0","eslint-plugin-import":"^2.16.0","eslint-plugin-promise":"^4.0.1","eslint-config-standard":"^12.0.0","eslint-plugin-standard":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aio-cna-core-config_1.0.13_1564036571263_0.6658405242512282","host":"s3://npm-registry-packages"}},"1.0.14":{"name":"@adobe/aio-cna-core-config","version":"1.0.14","author":{"name":"Adobe Inc."},"license":"Apache-2.0","_id":"@adobe/aio-cna-core-config@1.0.14","maintainers":[{"name":"aaronius","email":"aaron@aaronhardy.com"},{"name":"abhinavsaraswat","email":"absarasw@adobe.com"},{"name":"adobe-activation","email":"Engineering-Admins@adobe.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"adobe-behance","email":"sedunn@adobe.com"},{"name":"aemsites","email":"meyer@adobe.com"},{"name":"alexmirea","email":"alexandru.daniel.mirea@gmail.com"},{"name":"anjankaur","email":"anjankaur01.mkr@gmail.com"},{"name":"ashryan","email":"sayhi@ashryan.io"},{"name":"asteed","email":"andrewsteed@gmail.com"},{"name":"benjamind","email":"ben@delarre.net"},{"name":"dkstevekwak","email":"steveguac@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"filmaj","email":"maj.fil@gmail.com"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"goya","email":"brettrudd@gmail.com"},{"name":"hirenoble","email":"hirenanandshah@outlook.com"},{"name":"icaraps","email":"icaraps@hotmail.com"},{"name":"jfkhoury","email":"jfkhoury@gmail.com"},{"name":"jileesh","email":"jileeshsathyan@gmail.com"},{"name":"justinedelson","email":"justin@justinedelson.com"},{"name":"kerrishotts","email":"kerrishotts@gmail.com"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"macdonst","email":"simon.macdonald@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"meryllblanchet","email":"meryll@adobeio.com"},{"name":"moritzraho","email":"raho.mr@gmail.com"},{"name":"nporter-adbe","email":"nporter@adobe.com"},{"name":"praschetan","email":"cprasad@adobe.com"},{"name":"purplecabbage","email":"purplecabbage@gmail.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"stevegill","email":"stevengill97@gmail.com"},{"name":"target-admin","email":"ciocanu@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"yoshikinoko","email":"yoshikinoko@gmail.com"}],"homepage":"https://github.com/adobe/aio-cna-core-config#readme","bugs":{"url":"https://github.com/adobe/aio-cna-core-config/issues"},"dist":{"shasum":"68d8d46de6ba205519e8ca942f42e8544684a740","tarball":"https://registry.npmjs.org/@adobe/aio-cna-core-config/-/aio-cna-core-config-1.0.14.tgz","fileCount":8,"integrity":"sha512-7GLoXx7jF9qTD83vsIijGByjalDT3GYzxeSmMLIs8EhIN7ZLMk/xXWBsz7Fo2cW0i599xxxiKZtIX2Q0aqbb1g==","signatures":[{"sig":"MEUCIEp7r6seMNrm41l8lZyWAN154vXN/yeC7+XAzT3VjPkdAiEAnCtRLSPDESwi6THcrQI/OJTudMYAz4KAvjC9OpOBIGQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQTnSCRA9TVsSAnZWagAAsrYP/izswNr84xPAIPPv5/D6\nU7WlXlXUkDmBG2B0c5LYWySbNw0xdjmoItLjHMFxTnIgeUDkaK8w8iMGl3ni\nNvH8XUv1QRxDn7n66zP+fA+H2pG9tADmgAg6E/0+RZef8rFersxX9v50D8lv\nJPxtycNk31HrO/XzG2bY7QMW9jWAbIfWCReAEzt58/IY5+6RRTO+9l91ygib\nkibnCYE46POPAWawp/IMtAsKJJmvjPasbX5LM39zHR9SBkC+gJ65dKsFvnwi\npjLcudhTUz+DZ7ylwgETb4lHeONR3wW2y9unzZ3+8z8WKC8ll0pM44+HhYPf\nId+KXuzC1onav+6RJxsf9RypUvCJ1RzN9cGHWgpom64rmMTfPyzDHhNfdwsO\nnt1bllV6fyN8mSRvJx81euqLGlwrsoDpDeZdlJAN9F+tiAjUKGfVig9hCm0N\n9wbQ5PvYho3TwCQx/9kDMHdtCybVSQ6W1c4sPlGcnp3Wd3SutjbRY4G7R/ss\ncP63QuUK6uMG6AUH8mot61QZ1CtW/dxcLnwQkBPWGoBkaVtP+kSNAPd0QbyT\nc4LKmIqfxX2uknbIvSdTAt+yobQNX5ZoB3pRTy8m6myhrTg+Udwbhn9LBCWc\nmwQYdCiBiNyk36J8959shlBbi3b2hKqWxFwuGFgViIoIpmv3SOP/wL7C/5Xf\n+Ft2\r\n=b9hc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./src","engines":{"node":">=8.10.0"},"gitHead":"8d638fda87684d9142f43a0d0b7b1da093528cb6","scripts":{"test":"eslint . && jest  --coverage"},"_npmUser":{"name":"shazron","email":"shazron@gmail.com"},"deprecated":"WARNING: This module has been renamed to @adobe/aio-lib-core-config. Please install it instead. See https://github.com/adobe/aio-lib-core-config for more information.","repository":{"url":"git+https://github.com/adobe/aio-cna-core-config.git","type":"git"},"_npmVersion":"6.9.0","description":"Adobe I/O Configuration Module","directories":{},"_nodeVersion":"10.16.0","dependencies":{"debug":"^4.1.1","hjson":"^3.1.2","dotenv":"^8.0.0","js-yaml":"^3.13.0","deepmerge":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.5.0","eslint":"^6.0.1","codecov":"^3.3.0","mock-stdin":"^0.3.1","babel-runtime":"^6.26.0","jest-plugin-fs":"^2.9.0","eslint-plugin-jest":"22.9.0","eslint-plugin-node":"^9.0.0","eslint-plugin-import":"^2.16.0","eslint-plugin-promise":"^4.0.1","eslint-config-standard":"^12.0.0","eslint-plugin-standard":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aio-cna-core-config_1.0.14_1564555729955_0.3768288003543767","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-07-25T06:36:11.262Z","modified":"2026-10-01T01:32:17.200Z","1.0.13":"2019-07-25T06:36:11.427Z","1.0.14":"2019-07-31T06:48:50.109Z"},"bugs":{"url":"https://github.com/adobe/aio-cna-core-config/issues"},"author":{"name":"Adobe Inc."},"license":"Apache-2.0","homepage":"https://github.com/adobe/aio-cna-core-config#readme","repository":{"url":"git+https://github.com/adobe/aio-cna-core-config.git","type":"git"},"description":"Adobe I/O Configuration Module","maintainers":[{"email":"mabecker@adobe.com","name":"marbec"},{"email":"tripod@bocanegra.ch","name":"tripod"},{"email":"garthdb@gmail.com","name":"garthdb"},{"email":"lazdnet@gmail.com","name":"lazd"},{"email":"grp-opensourceoffice@adobe.com","name":"adobe-admin"},{"email":"patrickfulton@gmail.com","name":"patrickfulton"},{"email":"lars@trieloff.net","name":"trieloff"},{"email":"krisnye@gmail.com","name":"krisnye"},{"email":"dcpfsdk@adobe.com","name":"dcpfsdk"},{"email":"natebaldwindesign@gmail.com","name":"natebaldwin"},{"email":"devongovett@gmail.com","name":"devongovett"},{"email":"danniintheus@gmail.com","name":"aspro83"},{"email":"symanovi@adobe.com","name":"symanovi"},{"email":"dominique.pfister@gmail.com","name":"dpfister"},{"email":"sg@adobe.com","name":"stefan-guggisberg"},{"email":"npm@rofe.com","name":"rofe"},{"email":"kptdobe@gmail.com","name":"kptdobe"},{"email":"halls@adobe.com","name":"adobehalls"},{"email":"bradjohn@adobe.com","name":"fullcolorcoder"},{"email":"djaeggi@adobe.com","name":"djaeggi"},{"email":"dylandepass@gmail.com","name":"dylandepass"},{"email":"mhaack@adobe.com","name":"mhaack"},{"email":"amol@adobe.com","name":"amol-anand"},{"email":"stopp@adobe.com","name":"stopp-adobe"},{"email":"namarora@adobe.com","name":"namarora"},{"email":"doten@adobe.com","name":"doten"},{"email":"schmidt@adobe.com","name":"duh_schmidt"},{"email":"astha.bhargava23@gmail.com","name":"asthabh23"},{"email":"aljoseph@adobe.com","name":"aljoseph"},{"email":"zouhir.dahbi@outlook.com","name":"zdahbi"},{"email":"tuicu@adobe.com","name":"tuicu"},{"email":"fmeschbe@adobe.com","name":"fmeschbe"}],"readme":"<!--\nCopyright 2018 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n-->\n\naio-cna-core-config\n=======================\n\n[![Version](https://img.shields.io/npm/v/@adobe/aio-cna-core-config.svg)](https://npmjs.org/package/@adobe/aio-cna-core-config)\n[![Downloads/week](https://img.shields.io/npm/dw/@adobe/aio-cna-core-config.svg)](https://npmjs.org/package/@adobe/aio-cna-core-config)\n[![Build Status](https://travis-ci.com/adobe/aio-cna-core-config.svg?branch=master)](https://travis-ci.com/adobe/aio-cna-core-config)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Greenkeeper badge](https://badges.greenkeeper.io/adobe/aio-cna-core-config.svg)](https://greenkeeper.io/)\n[![Codecov Coverage](https://img.shields.io/codecov/c/github/adobe/aio-cna-core-config/master.svg?style=flat-square)](https://codecov.io/gh/adobe/aio-cna-core-config/)\n\nThis is a nodejs module to allow management of persistant and environment variable configuration.\n\nThe module can be added to your project with:\n\n```javascript\n> yarn add aio-cna-core-config\n\nor\n\n> npm install aio-cna-core-config --save\n```\n\nHere is a snippet:\n\n```javascript\nconst config = require('aio-cna-core-config')\n\n// set a key value\nconfig.set('pgb.authtoken', 1234)\n\n// reload data from files and environmental variables\nconfig.reload()\n\n// get all stored data\nconfig.get()\n\n// get data from a given key\nconfig.get('pgb.authtoken')\n\n// delete a key\nconfig.delete('pgb.authtoken')\n```\n\n## Peristent File Locations\n\n### User Configuration\n\nThe user default location is: \n\n1. **ENV['AIO_CONFIG_FILE']**\n1. **ENV['XDG_CONFIG_HOME']/aio**\n1. **\\<HOME>/.config/aio**\n\ndepending on whether the specified environmental variables exist\n\n### Project Configuration\n\nLocal configuration is loaded from **$PWD/.aio**\n\n### Dot Env Configuration\n\nA local .env file is also loaded.  This file can contain environmental variables\n\n## Resolving Values\n\nResolving configuration is done in two steps:\n\n1. .env file is read, parsed and hoisted to environment variables ( process.env )\n2. user and local files are read\n\nInheritance is similar to NPMRC and can be set using user file, project file and matching environment variables. Values are read and merged in the following order in increasing priority:\n\n1. user config eg. ~/.config/aio\n2. project config eg. $PWD/.aio\n3. environment variables matching AIO_\\<PLUGIN>_\\<KEY> \n\n```bash\n$ AIO_PGB_AUTHTOKEN=1234 node\n> config.get('pgb.authtoken')\n1234\n\n$ AIO_PGB_AUTH__TOKEN=1234 node # use double underscores to specify an underscore\n> config.get('pgb.auth_token')\n1234\n```\n\n## Contributing\nContributions are welcomed! Read the [Contributing Guide](CONTRIBUTING.md) for more information.\n \n## Licensing\n\nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.\n","readmeFilename":"README.md"}