{"_id":"@andrewiski/confighandler","_rev":"3-6c8c846e1b9af49c5011cc0b83ef704b","name":"@andrewiski/confighandler","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.1":{"name":"@andrewiski/confighandler","version":"1.0.1","author":{"url":"https://digitalexample.com","name":"Andrew DeVries","email":"adevries@digitalexample.com"},"license":"GPL-3.0-or-later","_id":"@andrewiski/confighandler@1.0.1","maintainers":[{"name":"andrewiski","email":"adevries@digitalexample.com"}],"homepage":"https://github.com/andrewiski/confighandler#readme","bugs":{"url":"https://github.com/andrewiski/confighandler/issues"},"dist":{"shasum":"2c1ca1fe5af8c65a4c6f3dc020e6964abe2df3ac","tarball":"https://registry.npmjs.org/@andrewiski/confighandler/-/confighandler-1.0.1.tgz","fileCount":10,"integrity":"sha512-b5uwuJOyoIhWbqaqQS7BYg6QeZ7pdRwERxQAqhlVnT8JutS8q5c1BOyojaT4hEmDHI6MwUTzUw4QkYl7HJk7mw==","signatures":[{"sig":"MEUCIQCBDon26P+wcMlH6EW9Rx2Tm6WbxVaS96Of8B45YyghxwIgdca8yP0tpzaDDpQ6e3lGRz4t/S/3zdnDC7F57kNkdN0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44620,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiA+fDCRA9TVsSAnZWagAAXq4QAJ/wVIhFzc3LeW5jfvGI\nVpFxmo5unWJnJFIqDM8KUmfpv/AhtX4zxeZDnXw/BQPgx38lVan6HvvMzSzf\nT4EGHx7R+/ZWk342oEQVzEl2GY1CNLmT68yOiwlxWmFwMRE/inUR6hh6An6k\nrlf7WgJhXt66+a6cOVqRv/CswYbpYmVttDW/mFlSU4m0LzTfLpZ6Rd8N+Sgu\n8D5gNjWbbD3VKkohVW4Xf60leWz4O7Cv6C0WgEbE0pFMJCxNjeqUtv3xQe8k\nRG/9jhy3hL0+3ijZHTOBhmdlt+8Bv2x61PGKvypVSqCVpTrxFSwcRilNQeJ8\nVG3HZMhuqGshoMWspK3X3h/s10WjAYi3KSG8xi9RFo+dmZaWfogaKeS7F2v2\nRWQJXf/a/5X54powxyVyxEnEvIch7rX+H5lUAQ8GB+uPCKxYAjWBXB/6Xo61\nG8jmtVN29VnG9RDW2u76M4ADiDmrR7W1ajiENkJWEh8mt6eSaU2deBO98xHp\nI3aDtWEjain2zdBZaigNw9PEQU3UgEG/Ps54xFq7qTKyj0mul8uVCldcVH1A\nOKoA/Tkst+SxxMR1APsyPGCpd7QSSahO99I3B8qn24CIt1u/NaZKP5dsUC1S\nZwOUuJzY04NOgM3RYMRZyQu8+LpBXDGgULXCdXsOsN++ZfzRc5XYGRDfb0CA\nZOKO\r\n=8nYc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"configHandler.js","engines":{"node":">=12.0"},"gitHead":"8177f5c07b4ff15395d226226d7ce3b227ec3dd1","private":false,"scripts":{"test":"node test/test-confighandler.js","start":"DEBUG=app USELOCALLIB=true node example/basic.js"},"_npmUser":{"name":"andrewiski","email":"adevries@digitalexample.com"},"repository":{"url":"git+https://github.com/andrewiski/confighandler.git","type":"git"},"_npmVersion":"8.1.2","description":"Tool to assist with config files","directories":{},"_nodeVersion":"16.13.2","dependencies":{"debug":"^4.3.2","extend":"^3.0.2","moment":"^2.29.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confighandler_1.0.1_1644423107248_0.62638260807243","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@andrewiski/confighandler","version":"1.0.4","author":{"url":"https://digitalexample.com","name":"Andrew DeVries","email":"adevries@digitalexample.com"},"license":"GPL-3.0-or-later","_id":"@andrewiski/confighandler@1.0.4","maintainers":[{"name":"andrewiski","email":"adevries@digitalexample.com"}],"homepage":"https://github.com/andrewiski/confighandler#readme","bugs":{"url":"https://github.com/andrewiski/confighandler/issues"},"dist":{"shasum":"3c06efde93ae51884da0c4809e15bf9bfbb1200c","tarball":"https://registry.npmjs.org/@andrewiski/confighandler/-/confighandler-1.0.4.tgz","fileCount":10,"integrity":"sha512-i19cI4whAsJDpI9965ZRXChTyUZySOTesL7+7Zb+Cu0egXfMjDmvSUCr99An2DZ4mCZKHiGdeVoU3ISc+5n57w==","signatures":[{"sig":"MEYCIQDGJxnea6t2LdpmdKDEGyhFb6uX2Cp7CjnGnXCZNBy06QIhAO3ohyVVcXQDt6xz8z3C1Ru05Xk0tQGoNqZmX5Ck0nkV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44753},"main":"configHandler.js","engines":{"node":">=12.0"},"gitHead":"cbbf029475c5ebb49c5c781f9ff804cb5e358dfc","private":false,"scripts":{"test":"node test/test-confighandler.js","start":"DEBUG=app USELOCALLIB=true node example/basic.js"},"_npmUser":{"name":"andrewiski","email":"adevries@digitalexample.com"},"repository":{"url":"git+https://github.com/andrewiski/confighandler.git","type":"git"},"_npmVersion":"8.19.4","description":"Tool to assist with config files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"debug":"^4.3.2","extend":"^3.0.2","moment":"^2.29.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confighandler_1.0.4_1692218072662_0.3237284288336779","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@andrewiski/confighandler","version":"1.0.5","description":"Tool to assist with config files","main":"configHandler.js","license":"GPL-3.0-or-later","private":false,"repository":{"type":"git","url":"git+https://github.com/andrewiski/confighandler.git"},"author":{"name":"Andrew DeVries","email":"adevries@digitalexample.com","url":"https://digitalexample.com"},"engines":{"node":">=12.0"},"scripts":{"test":"node test/test-confighandler.js","start":"DEBUG=app USELOCALLIB=true node example/basic.js"},"dependencies":{"debug":"^4.3.2","extend":"^3.0.2","moment":"^2.29.1"},"gitHead":"59cb1c095a44aa2120d986a1ab29ef5def3bcc3f","bugs":{"url":"https://github.com/andrewiski/confighandler/issues"},"homepage":"https://github.com/andrewiski/confighandler#readme","_id":"@andrewiski/confighandler@1.0.5","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zGu7U1NzDwYkY/WpNhLzMsahwTthH8YJhTwfi7WcRTPjfWYTlPID6l6VEL5KYfZcNA3DqPpRmj4PvxHB6tzE5Q==","shasum":"e7fc527b8986a8f95d9e9c7f404e3dbfe07d0c5e","tarball":"https://registry.npmjs.org/@andrewiski/confighandler/-/confighandler-1.0.5.tgz","fileCount":10,"unpackedSize":44909,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGXF6HG46lDP1Lg4fmgWYPeFVzntN3B2LCOFO0tqIr7PAiAha6OdIu+x6ULNtRp2zia5MVRuIqM9DnW6ZK1zj6wxPw=="}]},"_npmUser":{"name":"andrewiski","email":"adevries@digitalexample.com"},"directories":{},"maintainers":[{"name":"andrewiski","email":"adevries@digitalexample.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/confighandler_1.0.5_1739841416393_0.6581581719023701"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-09T16:11:47.188Z","modified":"2025-02-18T01:16:56.741Z","1.0.1":"2022-02-09T16:11:47.398Z","1.0.4":"2023-08-16T20:34:32.872Z","1.0.5":"2025-02-18T01:16:56.564Z"},"bugs":{"url":"https://github.com/andrewiski/confighandler/issues"},"author":{"name":"Andrew DeVries","email":"adevries@digitalexample.com","url":"https://digitalexample.com"},"license":"GPL-3.0-or-later","homepage":"https://github.com/andrewiski/confighandler#readme","repository":{"type":"git","url":"git+https://github.com/andrewiski/confighandler.git"},"description":"Tool to assist with config files","maintainers":[{"name":"andrewiski","email":"adevries@digitalexample.com"}],"readme":"# ConfigHandler \n Node.js Config file helper Class\n \n Install\n '''\n npm install @andrewiski/confighandler\n '''\n\n '''\n'use strict';\nconst path = require('path');\n\n//set Enviroment DEBUG=confighandler, app to see console output\nvar ConfigHandler = require('configHandler');\n    \n\nvar myAppDefaultConfig = {\n    dbConnectionString:\"sampleDbConnectionString\",\n    appEmailAddress:\"example@example.com\",\n    version: 0\n\n}\n\n\nvar configHandler = new ConfigHandler(\n    {\n        configFileName: 'config.json',\n        configDirectory: path.join(__dirname,'config'),\n        readConfigOnCreate: true\n    },\n\n    myAppDefaultConfig\n);\n\nconsole.log(\"Config\", configHandler.config);\n\nconfigHandler.config.version++;\nconfigHandler.config.appEmailAddress = \"updated\" + configHandler.config.version + \"@example,com\";\n\nconfigHandler.configFileSave();\n\nconsole.log(\"Config\", configHandler.config);\n\n '''\n","readmeFilename":"README.md"}