{"_id":"pyconf","_rev":"10-b059d3e8ae1fd595c9d7534398d6f717","name":"pyconf","description":"Read and write python config files non-destructively (preserves comments)","dist-tags":{"latest":"1.1.7"},"versions":{"1.0.0":{"name":"pyconf","version":"1.0.0","description":"Read and write python config files non-destructively (preserves comments)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/node-config-python.git"},"keywords":["python","conf","config","comments"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://github.com/coolaj86/node-config-python/issues"},"homepage":"https://github.com/coolaj86/node-config-python#readme","dependencies":{"safe-replace":"^1.0.2"},"gitHead":"7acb9f196ec20956d9b6adce73ac46adec6ac655","_id":"pyconf@1.0.0","_shasum":"8903aecfb47278d5a90447f261e14602dd896796","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"dist":{"shasum":"8903aecfb47278d5a90447f261e14602dd896796","tarball":"https://registry.npmjs.org/pyconf/-/pyconf-1.0.0.tgz","integrity":"sha512-63C09VDDMNZKT5KiUZQvV2J4uEjFoe6BanSTtLot8EYfUrgjUigdCMFhr5EgISXbi6Uc7xboFne/yEztmybVBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3+CZdf/lGiCjMAYv0zaJi2F05m1iyxPAwAcAIUSNKaAiEAqBKFCg6UnT5/4i7zZzt075fEGYbyUswrbW5vG0YSETY="}]},"directories":{}},"1.1.0":{"name":"pyconf","version":"1.1.0","description":"Read and write python config files non-destructively (preserves comments)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/node-config-python.git"},"keywords":["python","conf","config","comments"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://github.com/coolaj86/node-config-python/issues"},"homepage":"https://github.com/coolaj86/node-config-python#readme","dependencies":{"safe-replace":"^1.0.2"},"gitHead":"6e7e24be49a25b7752594176625823dc7a3ba136","_id":"pyconf@1.1.0","_shasum":"f3776252a6f984e0d6392462d5ea234b3249f15e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"dist":{"shasum":"f3776252a6f984e0d6392462d5ea234b3249f15e","tarball":"https://registry.npmjs.org/pyconf/-/pyconf-1.1.0.tgz","integrity":"sha512-xe9TrFBi+bhI7ol9iDZFOcw8tF70FncU5gKy9u+v81RWWAk12q0qLqTdP7oeIz2cfLxnU5Pcaoe3IgtKLhrFzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqQcLSFQiX7Z3gO64lHMHvf5bufHj8ypdmMb+1mKbbxwIhAIFfmDN2k8P79tdkj9DjSplig3dsRGJIDFGp7JuUH2nC"}]},"directories":{}},"1.1.1":{"name":"pyconf","version":"1.1.1","description":"Read and write python config files non-destructively (preserves comments)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/node-config-python.git"},"keywords":["python","conf","config","comments"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://github.com/coolaj86/node-config-python/issues"},"homepage":"https://github.com/coolaj86/node-config-python#readme","dependencies":{"safe-replace":"^1.0.2"},"gitHead":"942dc7b38a0ee359177447eaa0fee41d45fd7537","_id":"pyconf@1.1.1","_shasum":"61f2155ca42c00fa43223901898fc5554449bc1e","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"dist":{"shasum":"61f2155ca42c00fa43223901898fc5554449bc1e","tarball":"https://registry.npmjs.org/pyconf/-/pyconf-1.1.1.tgz","integrity":"sha512-MEuY2x8654jsirYJ/KM9T4A06PPkDQoWi/jsDdqjCYG+GtNdwoVZzB/WeFJwZWh/6xyL2zPqvBerwjNLIEFznQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCr2ihMPHoTevzjPrV4r9eM5iSYsMFmngNU6GZAJuBStAIhAIWVWf9bKImWbaBXugP972FRPW7lQoiR1Gpony2d8obz"}]},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/pyconf-1.1.1.tgz_1455212968111_0.7906028833240271"},"directories":{}},"1.1.2":{"name":"pyconf","version":"1.1.2","description":"Read and write python config files non-destructively (preserves comments)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/node-config-python.git"},"keywords":["python","conf","config","comments"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://github.com/coolaj86/node-config-python/issues"},"homepage":"https://github.com/coolaj86/node-config-python#readme","dependencies":{"safe-replace":"^1.0.2"},"gitHead":"9d334161bca5bb49958d9b479b7e349d2503c24a","_id":"pyconf@1.1.2","_shasum":"61a7aa299ff6ee57b8c687ad355a55d2e7a86a6b","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"dist":{"shasum":"61a7aa299ff6ee57b8c687ad355a55d2e7a86a6b","tarball":"https://registry.npmjs.org/pyconf/-/pyconf-1.1.2.tgz","integrity":"sha512-axoR6k7p8dKYi6EjWYymuA1Xop/2fyMK0nrFwO9WVnGPGmdUeHHP3D+H6/QRNkhn0huRkEJqUcK9+K+Z2JToAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5WfFjjzNx/1JGrvxbOht7mFjdqf7CqXXcHDBig1ZAfAiEAvNVYnyn60t4oCC+mSqIxjsKIctyagqKQi9LRTzqLIBc="}]},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/pyconf-1.1.2.tgz_1455215709364_0.20788307068869472"},"directories":{}},"1.1.5":{"name":"pyconf","version":"1.1.5","description":"Read and write python config files non-destructively (preserves comments)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/node-config-python.git"},"keywords":["python","conf","config","comments"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://github.com/coolaj86/node-config-python/issues"},"homepage":"https://github.com/coolaj86/node-config-python#readme","dependencies":{"safe-replace":"^1.0.2"},"gitHead":"5f5489b95c8e79d61e3b488185c4c8e48dd0e8af","_id":"pyconf@1.1.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"dist":{"integrity":"sha512-zXEg0oUJ4mY6azqVvRy6rePTIHZGhDQG3z9PVkE60uUabS9uILiIkHobU2Jzcs3tBltMBqyEATZZezRR/UFjkg==","shasum":"2d0904388a2babb4f37e8e51593451db50dba92b","tarball":"https://registry.npmjs.org/pyconf/-/pyconf-1.1.5.tgz","fileCount":6,"unpackedSize":19628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+I09CRA9TVsSAnZWagAAnE8P/jbNStFYH+S1CLpRDsU9\na1LGWT4INl9AhqczbuK8ELdjmUaf4AZsxlSlQ/pJLf8v3dXAlze6j3fFKcA8\n2c9OahoALXRkMg5VPnHOxyThjhoW4kTc7NC6H8Q/AF/fE5GE236/Xzxx/n/5\nTQCukLjjWOxulraOf8EW15B42Ovj6dAkOCTN8I5KOPY5Tml6i0brQri0M/Qc\nuDPGpF+Hqt+UmDygX3CBR67aIoslgOH84K+5CasEoDuuFF5cX3RunmrLUzDO\nL9khfZC8jXLjMw5ToJ9e9PahwAF0Yce422dUqUpxn3Uik6jJolp7aCij6EQL\nFBs6mbChs2hcuPpaxNCzXwahLnoTGB2BpHgwDuIH4WfSD7oglxk/iZynjnRn\nXdwKyBQ1ho7TBXRZc5sYWZ22Pse/RuRZ0YwyrcgEfW4GqZH3oNRr35YLzDb3\nGPptiHCMKTMVxLvSq4GctP3I8JoCwDoKp22VJSVxjubOETNFJA1dU69D1Qq9\nWKngQbvCzzzbM0WZkhAD5+qpM2Kh3PCQ0St/jrKSl8RLb/R5UHAJ5tTfY7OF\nuzk27o7aEbWX2n6qlcUzvTPHpKk4UMsxL8inKcm1z5GKVP0CivicK2VgmkAM\nRxZIjZq4i+SDei2xVXBMHRiSBwopmbp4915Xz+afVqa6B07zeDyImsmgvtsc\nLhta\r\n=XcWP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHgOw1ExQlF18vaKKjPvveRpAl33RVJmx4U8YKEVGlyJAiB7XMQe7PvYaiCUl8vRFCYDkrV5YUZ0h8q/gt/zsUtFVQ=="}]},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pyconf_1.1.5_1526238524736_0.9412612875997148"},"_hasShrinkwrap":false},"1.1.6":{"name":"pyconf","version":"1.1.6","description":"Read and write python config files non-destructively (preserves comments)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://git.coolaj6.com/coolaj86/pyconf.js.git"},"keywords":["python","conf","config","comments"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://git.coolaj6.com/coolaj86/pyconf.js/issues"},"homepage":"https://git.coolaj6.com/coolaj86/pyconf.js#readme","dependencies":{"safe-replace":"^1.0.2"},"gitHead":"6f6deae8fa5e20a4c9684f1a503e697bb70e8dd7","_id":"pyconf@1.1.6","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"dist":{"integrity":"sha512-4ujjwqch6nViWduSLc3/QFrDdJJAvAE7NRBarSGLANwh0tNW0MbXeJE8ZziJZvzRnUEN5scYwsS+ItYU1uj6dQ==","shasum":"ebd8e8e8aaba5d48c35423b81b61429323e287a2","tarball":"https://registry.npmjs.org/pyconf/-/pyconf-1.1.6.tgz","fileCount":6,"unpackedSize":19641,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbjY3UCRA9TVsSAnZWagAAHFoP/1ZNFI4EZCpCrm10V3CS\ni776vxoYtEy8UdK1Pndp4SV/zF+zAJZkxDRpoks6hhHpLV1+T2mK6Fy5mqGn\nC5qZct1h/7y3g/uEErmBXXNs1JCBWqtgLIK69MGkCsIHcMtOcSN9nxsreitL\ngwYSEShA06HIMSTc9exqMThD4CwOnxV3b0G6zfCeGwaE+F571BDTfsCjmAS1\nDYyX6+QjutMuvjkcWDWZ6gjFHXq4FBXzMciNWag3Ts21ndaRFtcmugL3hTmZ\n16SHKQ/SeK+L1yQhhatKO4yt3JL2YXz7PAKSh9rh7JNLMn79pUcE7Xq3qOyq\nSM4GpGxoCPVwFDJqYLCSGuzLY1HLByJfNRenoUnTMiijPco0bXG1jQoQ1pxK\nHh1kRBfHAUh3+WaVjfKTZYKNhS5ly3gIopCbbypJYeXE6MRDcotYLgZb5Ao8\nlLzt+ayQEwDnLTvi69LHs4lw5hwaw9XivgAWXq4yPrIdJS0ZPSKEkUcrR08d\n0xeStTSLZmJHpvex4y32t21AsCYmu0IgPkIg0vXFLE7InM4dSwCtLu/zpZFF\nK9bzuClgMOPk+4iLTnCZ6PfXRJfA6u/EYhKB4GrijUIRI5jjOX7zWuJ8mlh6\nIz9qigrwST5RGBGjXyUYKaN2BV5uaIfARfe1V6PX/xEBQJfQXucczbJxVTUZ\nFeaH\r\n=iDqw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVAKksdIMBY1h6NufwIExP9JOE4gy5k0QVFm4l1DM8bgIhANvyJ9hWM5yOR/VUpDfcn1G2CEuzlpUvl2+EoBNrl36z"}]},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pyconf_1.1.6_1536003539653_0.6897520845380114"},"_hasShrinkwrap":false},"1.1.7":{"name":"pyconf","version":"1.1.7","description":"Read and write python config files non-destructively (preserves comments)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://git.coolaj86.com/coolaj86/pyconf.js.git"},"keywords":["python","conf","config","comments"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"(MIT OR Apache-2.0)","bugs":{"url":"https://git.coolaj86.com/coolaj86/pyconf.js/issues"},"homepage":"https://git.coolaj86.com/coolaj86/pyconf.js#readme","dependencies":{"safe-replace":"^1.0.2"},"gitHead":"a0d1c7845c745c376a6e951902b6bcacb126e4ee","_id":"pyconf@1.1.7","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"dist":{"integrity":"sha512-v4clh33m68sjtMsh8XMpjhGWb/MQODAYZ1y7ORG5Qv58UK25OddoB+oXyexgDkK8ttFui/lZm2sQDgA2Ftjfkw==","shasum":"d48c3a8e10a050e304d0728b2e39803691829e7d","tarball":"https://registry.npmjs.org/pyconf/-/pyconf-1.1.7.tgz","fileCount":6,"unpackedSize":10125,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctXT8CRA9TVsSAnZWagAAq5YP/2+fVjBwFb6X2tcXgbmq\nOqr5oljJ3yqc/ZDXf66+MMnUWD12TBIZ4c9jYqD/xsK4RHn4HCs4ApPKRU8m\npQ2l8iEwWgBvt5sa59cRI7D4sJB9aV4ORXf6BnXRKoLW2TlhR/RBcKnKI7Al\nOHWhnA4jJ4Q1otEyhV2sFUvRruDwRuKZuu/EHSuwgOHIEvktW/7cJtWbxweQ\nuak7wcUmibP9z6G4VNCFK3rjtUGyERABRqhJqDO3WTa41AmQzJ8RMdQVVYCK\nC3KCTU9Xrapd+Kof4EBN4T5vGDyLVyK5vKS40UAPnFlJKA6AjO/k6OzwOpN8\nImNs+KS3tb/Ha6wYKHgbY6hVcZD2UjoRxFn4JRDCUBL6T5LP5uOhJCfsQf5m\nDK0PnwceRKiPxK7G87J8xTxvKBNG/32MwRsUq7xY93KW+ALQUKz2N7UQ5vSY\nZ6+sGOdOr16468wTHpLfD34cMANs/Uch90mVt/3gNghGmz+81BFppLFsabyc\nINZLVXsWPOFK7l9rvNWHEFz5K4VSqsvmQZIl0nRwYqiYshm2UyxItLwmRHjQ\nJCjfmM5HZX55O7AhRv68jo5Et61V/CJO+793E/r3mjR8J/KeyXVE4p2Xy4rg\n/5I6opd4pxbpq8VkA7azJkiC1n2ck2FqDhl6lcDpLaKJRRtKfI9qVHQY2AbI\nUFDk\r\n=PO57\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDavfH1YvwQz1TBGr+zL90w2Jswmm12/QrV9nehpZ2iTwIgSHyT8/Huwyhp2tQgBf7m28FQORHMjlM8HnCRlpotQMo="}]},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pyconf_1.1.7_1555395836112_0.024459336114213137"},"_hasShrinkwrap":false}},"readme":"# pyconf.js\n<small>formerly `node-config-python`</small>\n\nRead and write python config files non-destructively (preserves comments and line-order)\n\nTurns this kind of thing:\n\n```python\nfoo = True\nbar = None\nbaz = whatever\nqux = apples,bananas\n```\n\nInto this kind of thing:\n\n```javascript\n{ foo: true\n, bar: null\n, baz: \"whatever\"\n, qux: [\"apples\", \"bananas\"]\n}\n```\n\n(comments are stored in meta-data keys `__lines` and `__keys`)\n\n## Install\n\n```bash\nnpm install --save pyconf\n```\n\n## Usage\n\n```javascript\nvar pyconf = require('pyconf');\n\n// alias for fs.readFile() then pyconf.parse()\npyconf.readFile(\"/path/to/foo.conf\", function (err, obj) {\n  console.log(obj);\n});\n\n// alias for pyconf.stringify() then safeReplace.writeFile()\npyconf.writeFile(\"/path/to/foo.conf\", obj, function (err, obj) {\n  console.log(\"wrote file\");\n});\n```\n\nNote: the `writeFile` function uses `safe-replace` so that it will work even in environments where race conditions are possible and will also create a backup file `whatever.conf.bak` of the config being overwritten.\n\n## API\n\n```javascript\npyconf\n  .parse(str, cb)                   // => err, object\n\n  .stringify(obj, cb)               // => err, text\n\n  .readFile(filename, cb)           // => err, object\n\n  .writeFile(filename, obj, cb)     // => err\n```\n","maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"time":{"modified":"2022-06-25T02:54:46.357Z","created":"2015-12-15T07:07:22.764Z","1.0.0":"2015-12-15T07:07:22.764Z","1.1.0":"2015-12-20T05:15:02.189Z","1.1.1":"2016-02-11T17:49:31.438Z","1.1.2":"2016-02-11T18:35:12.470Z","1.1.5":"2018-05-13T19:08:44.820Z","1.1.6":"2018-09-03T19:38:59.814Z","1.1.7":"2019-04-16T06:23:56.263Z"},"homepage":"https://git.coolaj86.com/coolaj86/pyconf.js#readme","keywords":["python","conf","config","comments"],"repository":{"type":"git","url":"https://git.coolaj86.com/coolaj86/pyconf.js.git"},"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"bugs":{"url":"https://git.coolaj86.com/coolaj86/pyconf.js/issues"},"license":"(MIT OR Apache-2.0)","readmeFilename":"README.md"}