{"_id":"cfg-reader","_rev":"58-96c1d1ad336a1d86654350a7ab2fe396","name":"cfg-reader","dist-tags":{"alt":"2.0.0-alt2","dev":"2.0.0-dev","latest":"3.0.3","next":"4.0.0-rc.2"},"versions":{"1.0.0":{"name":"cfg-reader","version":"1.0.0","keywords":["cfg","cfg-reader","config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.0.0","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"3fa0063001a57fc90a8f7c0db8dd575a5f105100","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.0.0.tgz","fileCount":4,"integrity":"sha512-ToZIwZJkWBaPh81KCqsJzANa2dsxwNHq3kPKDE4mPmGH5G23dFMunrSiUZW9cPGDCHKVoZbrtm9HrH3cmb+4+Q==","signatures":[{"sig":"MEUCIQDvQvQPjSJcQXj1te49gb6+mtWfjX+eMdwwupep9SigLQIga2zHEaCGalY1QjIuFwoZgM1eC3DoB1zycNXcjcIvGeY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecNXQCRA9TVsSAnZWagAAFpkQAI3GOQyfbrx9cslJApg6\nO6Pd4iE82HmTTN7gswKgZMPXAUYQV5gpA2hR1h6IHVBPCy1ZNyR3cW8Giltn\n9T3RrkVRjwxEPV9HyOB8srpfw9GqZp2JR9Jk3B54dAa6Mw3OLR9X5JrNz3s4\n0AnEFDkyM+yGlutDu/InNt7Nu9X+JPTAqocTD6/0imLMCSOJz/26rgVRewqa\nmh65E9Ispf5IFgVnemuzlmwMleQvf87fBkxqMEztCmD6LMxP46rh/JBfQ7xf\naWGicBRkUw2CvlCf+e51fmVMmbTGo6hNuCcZss9RNLo+QuDJ+EAuTLYExznO\nuNLRDPcX7g/OtRotdg23HFewmB0yjqZ5LzlFAHXVM78Tfz0CDTRE7vj9d+/1\nwVotmwmxFbL9c5fvt+oupEk9dAkUhsoDtjMRiYozuDYUjEstb5z7KYVi8vd8\nVouD8RDY4IjotqZn4hYzjQeuz8UnjnCt0s8cMC5DSS3FEs9+/AS1arFcoPNd\nQhajKu+cSbCeZRwMaTImcFW74r6TNDssq1NztGpSqrWQHe9j2REzox9urx1H\nDginrbK5BBfJyrC6iE1OOYzqat1uMwoEzpICjrTD1IH5tjmJxbEabPZdMCEJ\ndPkWZ1xDXLIwVGa7aCn1/M6YN2isCLVxX9XzWu9ooLx/McY5gvOlAPQpPutI\ntZgA\r\n=4gE4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.1","description":".cfg file reader","directories":{},"_nodeVersion":"11.12.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^13.9.1"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.0.0_1584453072366_0.38432325830616554","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.1":{"name":"cfg-reader","version":"1.0.1","keywords":["cfg","cfg-reader","config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.0.1","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"94c573be3046ab88e565e8c934c06f97b1c1d56b","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.0.1.tgz","fileCount":6,"integrity":"sha512-BfKztD1deCI+knGwUOlbfY/7v5Jynz9sHtoz7+r+Dy72gH9sx6aAbG7AV430+4YQcmjzCBGk0iQiIym7Iwv3cA==","signatures":[{"sig":"MEYCIQCtWWsNHwUgYrG20uituBdeP1h5AserD8tv5NKwqSO2lAIhAKmGCnhsingUSB+ROcavUGInBGVclmsVaTJjcWH7tdYQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeceNNCRA9TVsSAnZWagAAo4sQAKOX3A0BJI4o8a4OFS/P\nzTAGnbFc/vt2FKxB7/ekdEFFs1G/tqGnSLu/grQRX8bmWLWSDpboXBVMpku1\nMD3SFoK6V4HovlIDB7cEPn/WTl4eOrZ8hp0WhzUOA9KA9/m0vv2C/7nAxvdT\ndzzyD0gShSLN4CgUzcGut0SvUiWRJ2h+L6B+uyB6EXwpaUBqek13Ykb0L54F\nAHkTt47mZ+/Hu6SHTUeZVPh6ppyJ5XJQ3cgrU7Vbt+VozS+wX9fQvJQqgxic\nElpyp+xr+o1Avol2dRcdSqF3ZgBhByNP+4+l90DX3I3dg96GNx90AB9awOXr\nXwhsLCG2At+eTwIS9+RrIpEhb+VKEG1wWD/SSxLNUJW/ArkHYCnAxF0xrHLl\nSEJxQWTVCDd5KgC06SDGrE7fA8sx37UsgzazJkYv1iBQb7IUTkp0ETjw4r46\no+u5bnUmePmOZ63kIMpiT0FZ4Ed7HrvOBWeb26vai/3WHaNd+yTtB/WNS3ny\noIa0gbz0ffGAPjlxnSoZHLwiHmngY6w4Z5wHFtjpk8QkRNuI7cl3ubZV5GU+\nb1ttdX/1pM6/1/oz2moZTGoyqvdRNN0MWy4+XCFt0055ROQvMHGpwYE9SoYx\n/xLZEHUoVBoRAeJK8bwVacgrET4mFDw1OErZxyoUdPLrJBZP1TPV6soYmE3e\n0PK6\r\n=++yF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","gitHead":"0c2ede92e11e81978879a3aa070f10cd6957a7e6","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.1","description":".cfg file reader","directories":{},"_nodeVersion":"11.12.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^13.9.1"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.0.1_1584522061400_0.5728468246161638","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.2":{"name":"cfg-reader","version":"1.0.2","keywords":["cfg","cfg-reader","config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.0.2","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"fff019929df100a0b9ac48519eadac46339a357c","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.0.2.tgz","fileCount":6,"integrity":"sha512-Yj7AyBtGa2WMJglS+7Exd9/k9v8hVLx5keWZ1ot51Ct4VTrkwHREUhEJjOIQsvJynp2W7d1RlMJE9Z3tOHlcRA==","signatures":[{"sig":"MEYCIQCrGycuzgq0v4SZxInCi0tHOgt+z4NGSsgOdiE4tjkZigIhAJ/hM59fhRESAbYZfALP2DNtneQ9cvYwGjCa+Ie06EbR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehvRACRA9TVsSAnZWagAALVUP/0lUwnz2EBhSu3xibypI\nvKU7kTGaFLwbuBOCreVs+hYJKCLx7rc3DlZQ68m523IEHVlrBomQR5TTSV1e\nFax1FKuEGbL95PdjMQMGJpOAIm/H5OFEu5M1W2DU6CQSa401g7QBrFg+Gdy1\njlbevtmyy7SEOSFypJwHEr6PfQQ+yc6D2VZmsgkoILT6qv+JkLcFIN+ykGYf\nmR6G07eaLX72EHATZvNL1hNMWWRX5XXNLu2sar+Ia0VLBdZrBYBxkQfTUu1f\nMuEClLBSlxj/igm+Os3pLpiAV3CsTTzK1ZZDjE10ojludLr+/8BaWBXZUhIl\n7Gd4VSsi9ehebBvnBJkRgjMXMdJBGaf/UOESKpFg8qn5eO2jnIcDDgAirIFT\nI24xZ/qwNjt9e4GY7FrRtzAOFbwbGBTCCKzKLZeVpSdYI2cpWEdDLZjnTvmv\nLFjOtAWLNYn1HKAfcAFBqOlpAMOS4swe+Y5N051P6k0ntj/iNwV4JFXwbq+8\nil70dDXIUoLhhtOkFTRo6vm9tfwVr+eoFRyWPj72qs/cw5Fruyti6F4E/iWq\nDgBk+1LaVurU5Hzzjo/bmPLBOTu1WSB3KXVKcZusXENYBEWixOb6ZaPZNwU0\n00nbSfKUXCwK5lBK4plL2iwq1Qv4JVekEnDhOafHHZbep4Hm33/ueVBtyAdC\nZsyW\r\n=s9YZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","gitHead":"b50f752824131cf2ccb87966e5e4ecd3725105bf","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"5.8.0","description":".cfg file reader","directories":{},"_nodeVersion":"10.15.2","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^13.9.1"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.0.2_1585902656410_0.48661936299891484","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.1.0":{"name":"cfg-reader","version":"1.1.0","keywords":["cfg","cfg-reader","config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.1.0","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"e6291b8c5bb40965ca1cab4fb2c977db11fb3577","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.1.0.tgz","fileCount":11,"integrity":"sha512-65XPTJpMxwBzrxqa2UrbszGZxx6xAZwTjiF2TDwOB1ULlsJw4k/0vWOyWRpWypbDMyGOFQzG0x00FwhXNzYrnw==","signatures":[{"sig":"MEUCIQDrQ+zh4HAQcHb6npFeJzW0/KR7DzjTZ2Lmezmew9tuBgIgc/ED0SRfLWRq23kNxz/DB27cdlAbG8AEGKrljespjew=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOV8NCRA9TVsSAnZWagAA/rAP/345+kwtDtUbyoT7yb//\njAqYoCa1V+bJYSJc3uKyu+j1WMkDJBlHPcC0wJLHbyamFkNa+II+qridN2GX\n/d3QyYWWaO2dz5FiUJGsaH/MSdP4LL8vFroBdwQWDIG0+YdiqugApvuhuEJS\ndztq1afS80VC2vn1gMjZkq17vcpMxVmbT0dcqmEmC4VYK/rWZZFJsH5V2Xv0\n1ds6b9XXgudWfaXWe4DEu0RwCX6rA37fTC6gpiDCl7crtHZghLbibftqIzMV\nxjzIT4Nh7R3qtfn6ruiK6e9nQLbEcUVA4x6aN0ySDAmdYzAH1r7zgLnCHl+u\nAfqb+4qrz/7OC7yM855kgUUDS/6ehUdoF9VZeRR7GSpP80BXNSAC0uvuB3rH\nqbDEqUNlSesM2o/KXkU/cwzyOCCecpobxHA3NvLrgsInDZbPJsku2jZ5q1Vn\n7fTWVDYPPnHbiWG7Yl/O49wWDa5VzUfVK2jS9b2H21MzQ9Km4SU+50/HjZva\nr9OCO3jDpPyNS9Gg64aEZQXBJkXToaAP3J7PJ7+bq0MbIUs+tNGLi86xIwCz\nLm2wVmSbaI1Ya/G/OUnmVuqlhOPAVi977QuHt7RVEptSSOY5g97k8bLyQisV\n51sBvNHzesgy49E4dWtiAsJ6RLT73igKw/3fP26G+HkUE/j64zoyoDwfrBxW\nZVyy\r\n=CQRi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"ff8eae5a25a05d204487c713a30409aaffe97a7a","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc && babel js -d dist"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.7","description":"A .cfg file reader","directories":{},"_nodeVersion":"10.21.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"babel-cli":"^6.26.0","@types/node":"^13.13.15","babel-preset-es2015":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.1.0_1597595404882_0.9819703363571575","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.2.0":{"name":"cfg-reader","version":"1.2.0","keywords":["cfg","cfg-reader","config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.2.0","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"edcf9d9f10ebc17f44606e5fadd85a5e19a1e6bc","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.2.0.tgz","fileCount":11,"integrity":"sha512-QogW00uJbqd9HnsiFZK0WXfUzlX9sMvDtIBVjxAfaVJVQtb31AQ5igk7XFf49icotgt7/AmfCnXsiHJDsLAUxA==","signatures":[{"sig":"MEUCIQDoYJ8ITV7cIQD7Nhh0lKETf6AtY51iY44rcogEn4E09gIgK4RBotGPxgjug35lfzSARX2kJxGcVZcWZ0xSsgE0fcc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29627,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPmytCRA9TVsSAnZWagAAeBsP/ipVy5QPXB5lHPXNiqHl\nWCG7vN9clPrzOUkh0zBV7be0EQ6g9zXhtR8j8Mc/Jd6dYJ9f7QpU5gGrWNmy\nBN2PjIr+FRj032FTzLZSn9c440LzA1os5kvsoKa5L6b+V28tnoc8i7QGcdzK\n8sf9gh8B/Vpjx+jG6VsIxzPf1ByZl+cjdOF2c+0q/KP0VAR2Mr6LCCh/CD5d\nTQM3xM5C0B69WnqGhFJDlzC01MRbiVGhLM1hY8RRQRWvJDmMKETMs7iTegyU\nUjGcTZcCBKCmORZ2kaB29F4flEfMP26lv7pzlg7wsj5RbyyKu6O+V0UpN5SN\nWiyV0rnigaNiRm6es3eGZaZOuQvutvb68Kf6mIY9rn50htuzbSXyw1F4KQwr\n6snDn44eoRl3345F3EwtQxBCe6LpMjXxM0fXJ4HzXyVqMbXW3Ic0RPDD7bbZ\niTrD+7QBrUJUPrIiXTGke1XM6skq4rj78gi2tnQGGp+Vgfo4Pg2MuuOaTU2v\nF71uxzZA/CXbb6lP0HA5YgvwRKnjXUnMx/QvLNuabEtr5k0Kksg3VWubEnTg\nUfzLpqq2pQ9XQYJXUG4mbnFlEW44NzSVE+iTNn9bTQupzQ7TF5p8K8Pf7Zxx\n9e3XNSVgNmIoRaFpbe7ZofqXMB9gxOejhxm836iTP7XK6K808ort0qmcdqKK\nYdXq\r\n=Y3zo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"094cfc236028e26126cb7c9e7cb691419614ef35","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc && babel js -d dist"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.7","description":"A .cfg file reader","directories":{},"_nodeVersion":"10.21.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"babel-cli":"^6.26.0","@types/node":"^13.13.15","babel-preset-es2015":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.2.0_1597926573380_0.22321860328163545","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.2.1":{"name":"cfg-reader","version":"1.2.1","keywords":["cfg","cfg-reader","config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.2.1","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"f43b7437686eb4f3914b32f07f81f11d3ab55ac0","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.2.1.tgz","fileCount":11,"integrity":"sha512-Ill1WzzYWV39DgVXKFCHgpH+NetgzelipqPCZhbpdqOdnJ9+FWIWeX+TzPMwRWgBaZMQaWMiDGoCgiecvddI2Q==","signatures":[{"sig":"MEUCIEBt0s4HpBvpTNSJYeizeb9fkhMxWHQwE7rUpNzS98qrAiEA6h5KeeemsMfWnuRMAjVsH3l+AEkW9Vj5omdYSEw9mzA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29641,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPqjaCRA9TVsSAnZWagAAQP4P/0/im0va3tsJ2T6g62Y1\nwywsAmw9nR7n8LMa2jK0FkT50zP7G+D3x2LXQnTv+A79jqVSTu201xVsBC/p\ndVOVO35lpQUkk3dc5gsNaiheUU5OZZQHGDpDlPF2vrhbKJ27xeJoBf0aYcSh\n1SXiq+jhUIVQC9Kqkl/Cc2UodwlMb2w0q3p6AIZWR1qEF/Fzw8j6jNBUiFkQ\nCfSwd6eiiwXyNPQBUUUz95/+v+KHZybO2IxlU0O12oXdn655s1FsLLjikdSG\nLHHOu+OEWMpqq+xi3FNMBU0AZ1LHqPSR1xdJnfF/49RmZ9TjwV1fk8Vz2oCY\nDadXrqZn2ux67/08qUVcgCJzvaous48uXQnSlapw1QfWiz4rne2ZjOtCRKbK\nKq/qBWfNSGW9+92Hwj6/vtRjEoo7AnyQPetSk00mVBosn45b78YOUJ3OU6XV\nmD+tdJoQ2QtkWCHutojJ3dz8AIFhtdv6rJAMgYZ9NF4MudKgv4M3GwR3hLKR\nigqXfl5NRgUl5KH/0Qx++eoroW8gQyt5Et8bCV4+1skUlSA8yXzf2nrZy2Sy\nTD8oPqWSugVnUF/Pbm6Tr+7hfKCfViEaJsQ92iaqKSJoJ0vwEQuK3gtonz/6\n5azee8IdXuBKzeuc3sq67JXf8ht83GG/CTMSZXEy0WAaKFHpzYc3V4732uL7\nVimY\r\n=IM0w\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"a92230281e07a4cf6c703037e491860de0578f84","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc && babel js -d dist"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.7","description":"A .cfg file reader","directories":{},"_nodeVersion":"10.21.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"babel-cli":"^6.26.0","@types/node":"^13.13.15","babel-preset-es2015":"^6.24.1"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.2.1_1597941977555_0.24053440142109594","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc1":{"name":"cfg-reader","version":"2.0.0-rc1","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc1","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"155512873021451494f6939095ead14d6133dd33","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc1.tgz","fileCount":22,"integrity":"sha512-UWW+edu/W1z+JccvhzKfUl1OyJWfIY0HPcOXINKcfIi+YrxdEo7ACZoe9LCk88wwGmNyotvBbIkw71CBqK9T6A==","signatures":[{"sig":"MEUCIBifoBKr2O5bGq7ofDBdbflCznq4ASBwMgUpQEFBLnJEAiEAuffYkk647V0obxpr8cWeQtiU3nROSe8AuQmjqyK2+lw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNBQ1CRA9TVsSAnZWagAAsNYP/0h0s1XrsHncbQ3Zkp0J\n5XH/QBbHbX0UtnNJ6vmxC6w+hwMQO+eO+ly6YNpjkfonGUtxDJT6tnta162R\nOQXNZYKF+zmO/PddCcrldekao0nQNgviVq/cU0iIubkHJXEGdeH6BaYjpJG4\nUzSqQTJ/IcOhb+felQypxEt5Hc+lHC6VEBrVea3OJPN1oZb1ZqWbmtT/mS7S\nIPq8h1sjs7tWMLJE7R6iUXRAGrEAMms8FMXTs40roM4w/c3EXttNT46n2tFD\no7KUGAQW8Qikwt333r40UJ1sL8xmydSOWPZ9MODlSIwbXQcM5f0SJtMNf06E\nQ7hl0ko0E38HKrn088bYIAuGtgwCUSi1Sx1JMWaAnMXyJuMEuS9nMkPiCJpE\n1S8KD1fD97WUTxNyR1yksrRCzx6LCwJ3t68NZv+SdPE5moHaOXJ/XDSD2/7B\nuhs7pQjZgD0I4Va4Kx9HZ+2Oa7NfHtdVakEXFS0efGFi39vBtThwax2F/oQ1\nSw9M+ozCpMyKtHqrR0+qN2rdWbTdYsxJJMblb6tFDc8kaVhPbyLzXTKCEf0D\nnl3CzPzOIqmzVC3hyuzR2e9TZyIWYLudL4fPASuOYVcGt74Th2bkWnscbYRi\ndI40FHVh6x1i0VimRsiVQvI2JvDYMac5NyHVtSpae7EGwil0bnwzn2eDKoxv\n+LIg\r\n=Fr1Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader\r\n```\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require('cfg-reader');\r\nconst myCfg = new Config('config.cfg');\r\nmyCfg.Get('test');\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require('cfg-reader');\r\nconst testCfg = new Config('test.cfg');\r\n// If you know which type the value you want to get has you can use\r\n// GetOfType(key: string, type: number).\r\n// It directly converts the value to the right type \r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.GetOfType('test', Type.String);\r\n```\r\n\r\n## Differences between v1\r\nRemoved:\r\n- Config.load()\r\n- Config.fromJson()\r\n- Config.fromObject()\r\n- Config.path\r\n- Config#has()\r\n\r\nRenamed:\r\n- Config#get() to Config#Get()\r\n- Config#set() to Config#Set()\r\n- Config#save() to Config#Save()\r\n\r\nAdded:\r\n- Config#GetOfType()\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.\r\nIt should be way faster than my own parser in v1.\r\nAdditionally is this module now a native node addon.\r\nIf you find a memory leak make sure to create an issue at this repo.\r\nContributions are welcome.\r\n\r\n## Note\r\n\r\n - The setter method isn't working rn\r\n - Lists and Dicts arent support atm\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n```cfg\r\nmysql_host: 127.0.0.1,\r\nmysql_user: root,\r\nmysql_password: test123,\r\nmysql_database: db\r\n```\r\n__or__\r\n\r\n**This is not working until its possible to get dicts**\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n**This is not working until its possible to get dicts**\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader')('config.cfg');\r\nconst con = mysql.createConnection(config.Get('mysql'));\r\n...\r\n```\r\n**Workaround while its not possible to get dicts**\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader')('config.cfg');\r\nconst con = mysql.createConnection({\r\n    host: config.Get('mysql_host'),\r\n    user: config.Get('mysql_user'),\r\n    password: config.Get('mysql_password'),\r\n    database: config.Get('mysql_database')\r\n});\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"gitHead":"e13607fd2b161ae55aab2517e4c76e0437611eff","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/index.test.mjs","configure":"node-gyp configure","postinstall":"npm run build"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.4","description":"A .cfg file reader","directories":{},"_nodeVersion":"12.18.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","node-gyp":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc1_1614025781227_0.10540415851496321","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc2":{"name":"cfg-reader","version":"2.0.0-rc2","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc2","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"fc16c0381a5fce88fe4ddaab7b3d620d537e33cc","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc2.tgz","fileCount":23,"integrity":"sha512-BJiZQEfRECKRa+TR6nLVSWk2NH+KSODUsDT2aKgylBujaIIAQhUhwuI7xIUAYge2jcEXpNt/Q35NaWJJEfWGUQ==","signatures":[{"sig":"MEQCIDtLT/29ejnagHykHUuwjmqtxl1MkT23LYXaub92Q8vjAiAyt9r00HlYY3VDdj3WzmeE9qMa6jKBMrWavKiVr5uBlw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNDSTCRA9TVsSAnZWagAA4WsP/iq+JtxPT5WTuW+WiJbQ\nmK4OS4fcYAENmeVF6WYahWnBg8jdNezOA7vEBfF200w/NKxzdhlqu12NoM9y\nyGYeXCSOISuSxeuqD+1ZeQ2NCyTLBIbyGpPX58BnYr70x/akKhds9xf8Mlis\npbmNxmL5exPiasGvInR0JLVHgllbc/aPcigfRjLV2AbrMlWpd1mDALAo2V0F\ng8utEuGK2o70yF1/PlHz1pIExZx9Hpu912i9W2Koe+s8qY9j/QsqjcaCQnEJ\ne1/EOvfDkbnDdzPit779RCsQllu6qrq22t1z9qJ7keLwKN5JHSFDy0LmF5Ma\nkTdmQKWu+cqmNaT6+BsRBgCmZGmEsCp56Gwqm9SNOqFEX8SW66fSr5WMBquj\nGk+DqanfDBPPVzCjuTCcEQGWk8WYJAEHU7hqvjBgrtnR7rpBNoeCm0dzc8a/\n2eW5PJmtb4WYmwuurxJBZ9XgmkEmn7uaezf7GVx4vzDrxId/4y2CwDBKTxED\nCvX0Gnotmuj6svUgF6/IXSvsvtcaN2swTladydnfu8cVtrzFhkYzSbu0NlMR\nbLuUFZOUkFmmCPDbJULBiP4oenx3N5DeS1yb9+9VvXGStShq/+P8RvaFl/GN\n88YBSDw1LTo42KQzUVCnNQbnf6foEFS8QgfdVikyOlXpfJxSO5nYOUgWGhPI\n5JcT\r\n=r3xY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next # currently building does not work at linux, feel free to create a pr with correct compile configs to fix that\r\n```\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require('cfg-reader');\r\nconst myCfg = new Config('config.cfg');\r\nmyCfg.Get('test');\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require('cfg-reader');\r\nconst testCfg = new Config('test.cfg');\r\n// If you know which type the value you want to get has you can use\r\n// GetOfType(key: string, type: number).\r\n// It directly converts the value to the right type \r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.GetOfType('test', Type.String);\r\n```\r\n\r\n## Differences between v1\r\nRemoved:\r\n- Config.load()\r\n- Config.fromJson()\r\n- Config.fromObject()\r\n- Config.path\r\n- Config#has()\r\n\r\nRenamed:\r\n- Config#get() to Config#Get()\r\n- Config#set() to Config#Set()\r\n- Config#save() to Config#Save()\r\n\r\nAdded:\r\n- Config#GetOfType()\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.\r\nIt should be way faster than my own parser in v1.\r\nAdditionally is this module now a native node addon.\r\nIf you find a memory leak make sure to create an issue at this repo.\r\nContributions are welcome.\r\n\r\n## Note\r\n\r\n - The setter method isn't working rn\r\n - Lists and Dicts arent support atm\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n```cfg\r\nmysql_host: 127.0.0.1,\r\nmysql_user: root,\r\nmysql_password: test123,\r\nmysql_database: db\r\n```\r\n__or__\r\n\r\n**This is not working until its possible to get dicts**\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n**This is not working until its possible to get dicts**\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader')('config.cfg');\r\nconst con = mysql.createConnection(config.Get('mysql'));\r\n...\r\n```\r\n**Workaround while its not possible to get dicts**\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader')('config.cfg');\r\nconst con = mysql.createConnection({\r\n    host: config.Get('mysql_host'),\r\n    user: config.Get('mysql_user'),\r\n    password: config.Get('mysql_password'),\r\n    database: config.Get('mysql_database')\r\n});\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"default":"./index.mjs","require":"./index.cjs"}},"gitHead":"a5f5cc5e72b17312c695b73b0c3fdf150d872aa7","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/index.test.mjs","configure":"node-gyp configure","postinstall":"npm run build"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.11","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.15.5","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","node-gyp":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc2_1614034066651_0.5468649621093502","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc3":{"name":"cfg-reader","version":"2.0.0-rc3","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc3","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"d06043ee96b396d8e45541e635142b9d506db2fe","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc3.tgz","fileCount":23,"integrity":"sha512-tgayWvoVIkG5GJ8Jh588u2ne77GLoHb7s3J79qRF1TrnaWoyuTpF9ImYV8lfGbUL4vb1ONHJJ3HvXs3apnXkRg==","signatures":[{"sig":"MEUCIQDXcpBBsmft54T1IJ79zDDF3AT6LBLE6oS3N2iDCjO5xgIgQKudyhOloh5kDj7UDWhzIYfK4eiwOAnrRpJhTaNu8o0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNDkgCRA9TVsSAnZWagAAh7EP/1TYXdPRHPNWRb8ZW7j1\nGzHrVqJb3/kOj924BHd69ezeGdTP8FlcauJyKwXfOMpJZqDWDx7pp0ZwC17E\nvhiuxBQTQ5UQFUTs9uQgxymfIiDYWM1F0FCj8sq6xiWPImTubhBwJhFIwhl0\nJInEywpjLFvaRmb8dgf+2OGWk2EZDXx5iobAOSFvFqQnU6I2YUxaAoJB26AL\n7Xn8FBTasU7++Iy5trob5NKvFsoeVKJzqzXdgqEHq7SU8sxnbZ8HYC4uNccW\nGS1uYTrUQk77dPLAfoI25wC+NW1yFHNh5AW7CdYQzMssDLVqhCLM4+IrezKJ\nAwopgB8FPS0Ks1HWPUOkZmG8nInSdUQuIRdUwI6696aTqLk357dqrzfjo+Fk\nGuzxF8lbZykKtojf0qdmS3WdYVdB6wFWbkFAQmsR/iXebpB1/kC9K2Mhmv+t\nKLcDAFkvkziJZ34ZnJ98qAqOVVGkssE7sbXsakMqzib/IHTxJmmdJxcSK7Yy\n9BnnhLBpWxzJogyG0iaHGyyqkd0ta9CKiJrYGZ7Iz9HoRoyKOjvtozFLCLbl\nbeLflM7nS9/v59UfxJaPI0+xWWYyuie4zh/gofZm1eBIJ1kXWsA8ykKMt0GL\nDSfg6N6/lr7rQAJ3lpKYhF/ARsKyU+dycZGYegh38uazhelLw0arpsHfw6qA\nw+er\r\n=wKDe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next # currently building does not work at linux, feel free to create a pr with correct compile configs to fix that\r\n```\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require('cfg-reader');\r\nconst myCfg = new Config('config.cfg');\r\nmyCfg.Get('test');\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require('cfg-reader');\r\nconst testCfg = new Config('test.cfg');\r\n// If you know which type the value you want to get has you can use\r\n// GetOfType(key: string, type: number).\r\n// It directly converts the value to the right type \r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.GetOfType('test', Type.String);\r\n```\r\n\r\n## Differences between v1\r\nRemoved:\r\n- Config.load()\r\n- Config.fromJson()\r\n- Config.fromObject()\r\n- Config.path\r\n- Config#has()\r\n\r\nRenamed:\r\n- Config#get() to Config#Get()\r\n- Config#set() to Config#Set()\r\n- Config#save() to Config#Save()\r\n\r\nAdded:\r\n- Config#GetOfType()\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.\r\nIt should be way faster than my own parser in v1.\r\nAdditionally is this module now a native node addon.\r\nIf you find a memory leak make sure to create an issue at this repo.\r\nContributions are welcome.\r\n\r\n## Note\r\n\r\n - You can only set integers, booleans and strings via the set method currently\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg'); \r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.Get('mysql'));\r\n...\r\n```\r\n__or__\r\n\r\nconfig.cfg\r\n```ini\r\nmysql_host: 127.0.0.1\r\nmysql_user: root\r\nmysql_password: test123\r\nmysql_database: db\r\nmysql_wait: no # no is equal with false and yes is equal with true\r\nmysql_climit: 10\r\nmysql_qlimit: 0\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst { Config, Type } = require('cfg-reader');\r\nconst config = new Config('config.cfg');\r\nconst con = mysql.createConnection({\r\n    host: config.GetOfType('mysql_host', Type.String),\r\n    user: config.Get('mysql_user'),\r\n    password: config.Get('mysql_password'),\r\n    database: config.Get('mysql_database'),\r\n    waitForConnections: config.GetOfType('mysql_wait', Type.Boolean),\r\n    connectionLimit: config.GetOfType('mysql_climit', Type.Number),\r\n    queueLimit: config.Get('mysql_qlimit')\r\n});\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"default":"./index.mjs","require":"./index.cjs"}},"gitHead":"97859f3517ca0d1ccce466689ddcb97d4516911f","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/index.test.mjs","configure":"node-gyp configure","postinstall":"npm run build"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.11","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.15.5","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","node-gyp":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc3_1614035232258_0.23167271253968336","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.3.0":{"name":"cfg-reader","version":"1.3.0","keywords":["cfg","cfg-reader","config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.3.0","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"5b103b0075dd59e9505f9bc51a567f5795f84fe7","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.3.0.tgz","fileCount":8,"integrity":"sha512-AAuI+0hzpmT1kjHQzKR/801H8l2AClOipvK2ZMxOIcJbBpYCvVlvRuA1Hcpoa56eFBaSXkIMAx28BXVxVO55Sg==","signatures":[{"sig":"MEUCIQCGI8CflynzcbQBeVrczXMowWaH2tWPqJDoSGFmhGSWIgIgTz82jpr6sd9+WYgqfFajTP5rjRPAO8MrBjr1jOyIIcg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20685,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSpUiCRA9TVsSAnZWagAAwxoP/jskd/uaBgPEDWCK1ZTu\n7pXKgEbb0gUcHjyLB7G17/BH4/+UPFc1gVvG1oE4w7w624d8zTSJ6Jhvhl3V\n8muaI8pJUU3aYv/oh1aeYZ4mVg8zTyxtZUdM5tLIWlR3SS3pUunn0M+pg+TU\nu7esch0JimAQiX6VZOHpKM16FfOUqlFm0Mkr5+UbeEZu0Fc95rC0nIuMkS53\nkquMXZZwCY/EZzTz1YWPnMXgRePnMlPBhjCdodPa8GTpC/5CqwughwRjtY8C\nyP9bKyuA0HUOVljV/8UlYG1+Nkgd4rMAbn5GCxFrUrzPWSCyNe+Dc/vHpIP2\nCO6sc1e3/htykPea89U82AHDqrKMINan/gOG05rDIVsUt6QZ7BI52x8uxmW4\ng4fEyQoQSJ+mfX1/hLowDMZrv+aZeXu7/XurTKeD1HsunGEG6c8q5urOo/l1\nOhcJT9zFU3eE5COUttQNYK8Y9PSDzYN5IgJKxzIJl3gamD9nYXxOwVIDog+q\nLEeiTbtg8e/VeSbXzth4CrBOh6O9c4RFLd7QG5A+YXMPLmMRCmS4cnQ9Zx73\nvdhOa5x78dAduVSsb/VE1tZH29fEDX3NBVWLnTiET/UTFjPCkrjozzA3RGu2\ndkY0VQ3REg+s1AZba+0+aOxcHw/DUnKFeR/FmeQKFqhctFeLNst+CM0d8BJG\nB94b\r\n=sesM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.esm.mjs","engines":{"node":">= 10"},"exports":{".":{"default":"./dist/index.esm.mjs","require":"./dist/index.js"}},"gitHead":"33b67327c81a72d614e93ef3cc689b68b1aaf437","scripts":{"test":"mocha test/test.mjs","build":"rollup -c"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"deprecated":"annoying debug logs","repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"7.6.0","description":"A .cfg file reader","directories":{},"_nodeVersion":"15.11.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.3.1","rollup":"^2.41.1","typescript":"^4.2.3","@types/node":"^13.13.46","@types/mocha":"^8.2.1","rollup-plugin-typescript2":"^0.30.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.3.0_1615500578262_0.8411049283662939","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"cfg-reader","version":"1.3.1","keywords":["cfg","cfg-reader","config","alt-config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.3.1","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"21ad2706c65922bb4e92cae6d415504f411e294a","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.3.1.tgz","fileCount":11,"integrity":"sha512-IjoX8rQuHNMN8K7WwXC60dogBoIUbigcbcRNbPzfd54maHC3/xisLtQ5Yl+LgGchS2pg4s6xY6K6qC18Sh4JTg==","signatures":[{"sig":"MEYCIQC91RXtuFxQT95i28j99fxGXKUM66FFxew7DbWokCR6lAIhAJzydms6TwQadT0PQwnp5ktxXqPgQkfpsUw8FSfx+Y74","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22350,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSppZCRA9TVsSAnZWagAAz6YQAIkGpLe6HYbLUE9YGqXw\nMCywirUXTStAyziL4Lw0EbNZYfLHxMNJMiY1zmIKRJ1kQADcJqQHiWtdG05E\nzueGO2IvwjD6czpHb8ak859UqGIojJOeC1SG/kdW/nIrBuzRjNtpoI5Wf/P/\nfCF0h7fIgFMFoqukF3LmjaAFlUccYo2Bpvko99U38R5w89LT/i33+v/1goYy\nCvoLNNOHSYKGobFHMjZgvmsLWGGEFG8JVJCTKLB0KtiLW5utv52RtUsccjVz\nKa25mhP8hWZWq2Oycy5G8yW3zU0EuFgGhglgxPkYnJXB7a2lD+LY/Wqdn3ZO\nUCEDBHTauWWRekUzUxw5q87d1nb+9pb3KhOrAE8I9mHrA4vN67f75ZASsXMA\nHFtR8Itg3lEw5zcCc1WHWPxHN2pUdR3Gov4eTBDyTUFUF8DBdBpT/TaYwPCZ\nHF9QO4jsJ/qy2rtpBtDFbwt72oI2FbzkuqfpH+14kIfZ9TXQ2DlzlFm0uPWv\njo7eKNwS1Nt76LQm0mPgAvHP+mB1qKtR08W+dqeqSnVk3LVZGoeRx8MJxvOA\nMqU8y55iCjNQCemkPI5KYZ2bsdc+DCH7px2Aqm8EPNi5ralEL4R8hrhxK93O\nQ3e4G5+n7fz06nRAbaXSfuLpeq8biSBQqwpVm7dU62W1qFFpm11DliWH62fL\nGDOr\r\n=pHaM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.esm.mjs","engines":{"node":">= 10"},"exports":{".":{"default":"./dist/index.esm.mjs","require":"./dist/index.js"}},"gitHead":"dbcc3630bbe363a8a17513dc4328d0468a9ea505","scripts":{"lint":"eslint . --fix","test":"mocha test/test.mjs","build":"rollup -c"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"deprecated":"annoying debug logs","repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"7.6.0","description":"A .cfg file reader","directories":{},"_nodeVersion":"15.11.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.3.1","eslint":"^7.21.0","rollup":"^2.41.1","prettier":"^2.2.1","typescript":"^4.2.3","@types/node":"^13.13.46","@types/mocha":"^8.2.1","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","@typescript-eslint/parser":"^4.17.0","rollup-plugin-typescript2":"^0.30.0","@typescript-eslint/eslint-plugin":"^4.17.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.3.1_1615501913422_0.33116138729603906","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"cfg-reader","version":"1.3.2","keywords":["cfg","cfg-reader","config","alt-config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.3.2","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"8a7828439b2d06ad4748bde4bbc6a0bda0204610","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.3.2.tgz","fileCount":11,"integrity":"sha512-LKlL8LV9dCUdE27ii21gBZUnOfXQPPssQH9fF2rD2MF1lzH+Z5qFkftmd4wSlxcyEIoMhPz8H6i/co+9ybd7pw==","signatures":[{"sig":"MEYCIQC/fVJl4jew9eittP1hJ6fbzM5HLw1iT+3omdvC7N675AIhAKiKnqh30k1ftZVsR0PUH/oRWpm9cTeER72MSGuKIDsU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22684,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSpxkCRA9TVsSAnZWagAAE3gP/1H8rhX80wdlkKSwc5ZN\n+uN7tVVKrpmr/ZeYnJ6qO4LnqXG4XPy6eMA1N9Ttp17byR2mgrspwl03vGqH\nsLsMoPg8CKuxyW2Cho3gkwwtcGdX0W/cQ3HkxGSbzmGe+EtvNYhoY+IdOJnQ\nA14f2Mh4IVF5TXnPzZV+fiJA+uX/d9XY0k925zVDHykq0kX4YpfFBk8+QT8t\nZDZiXVbqAxvbl8N3RtnFvRZLNMj2t2nD2sckhIRTvlbNOzFQkarvoghIynd8\nLBycxAW2a7HVTU/q8AIXoxC8d+R6wxvKMXaE8FLY896bAILeA2ycmbDpigz7\nKfQlsuS3Y5iNl0CCtR6XIrNG/GZ6xoiBJFquSlVE6YL8pznMfjcOI19DbZPR\n/dEwlFp+lzBkiOrKXr5F08AsP23MVAJLsHYgjkhlVFzWbpODi2mobDSpP902\nk6dLTOvBMVxi3eA/6wBIJzKUio1fBwVnEIVGR8/me5IbYhMLy5PI+J6FU9DH\nYzYv3nZbeR354oupQSGqE0tbwlzk1rsvSCF6Uo8rtEy3JoKWKD1oiiSUs0Jo\no7P1BFcDhF0ZHt7VB3FoPNeZIz3763EAQ4rayE/fXehkeVHpl2AFULv0KUWr\nRoYiVDEdGK88ZeBialZN1iUw3TmIdYQ9Aa8JflVXaXtWov5OcJQe9t+IFFmP\nlLoI\r\n=8vgu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.esm.mjs","engines":{"node":">= 10"},"exports":{".":{"default":"./dist/index.esm.mjs","require":"./dist/index.js"}},"gitHead":"1884b19416b610ef788b048dca469bd60317d5cf","scripts":{"lint":"eslint . --fix","test":"mocha test/test.mjs","build":"rollup -c"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"7.6.0","description":"A .cfg file reader","directories":{},"_nodeVersion":"15.11.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.3.1","eslint":"^7.21.0","rollup":"^2.41.1","prettier":"^2.2.1","typescript":"^4.2.3","@types/node":"^13.13.46","@types/mocha":"^8.2.1","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","@typescript-eslint/parser":"^4.17.0","rollup-plugin-typescript2":"^0.30.0","@typescript-eslint/eslint-plugin":"^4.17.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.3.2_1615502435905_0.7763536927790455","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc4":{"name":"cfg-reader","version":"2.0.0-rc4","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc4","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"c14d54657e14415a79f627335d0f6d292ce9f73f","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc4.tgz","fileCount":23,"integrity":"sha512-+hQUHcId6qlIEZ0ovN0dGEvK3ravDZFAAUUVkW1i7eBJCxmlh9xYcOpQ7HUJrBYF/v5DF6Q/ow5IpDy78IP8Uw==","signatures":[{"sig":"MEYCIQDX5toLnaIOVv6M7fWY+LQ2I8OPo73C0FXQ8duNFoPdXAIhAL1SQ2uK+c2yH6SQtp7m+m5I6CTmbprC/aIratMp2ayi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46999,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXf08CRA9TVsSAnZWagAADAcP/R7oT35kTAxka+vkSHld\nZiIOw9cV+WZ6RxVyAARnB/HFj8JN2VTjYADMKsrphCdL0ChbYVoSb+0r+J1r\n/azKla0BCw6i2edRxAy3oCWB6pAJbZ4lVymvGi2Tx5Zk8aH1nLdeNduYWGeN\nvW8Wxv6W1/EdCyvLtEvLq0rM8vSVIKnGfaJ+NyUZzo1VuyPn5jM78Nh7mQ9/\n/Nfj/o+eAOZJj1tKt6xGejGYhfHy4lRy/42eq0ZBVC4VP8a61z+7WrDMyChD\ndJEW68/pHD33z66ZhpxPycLn2BSEuKOa5Q7GCMcjESWS9nVuXlTBM++6eP+p\nC1K5279HJBS3XOvZYOE7ftJa61Qw5TLJiaV//edgx1PsN7JfNS22ZBm4Fd86\n9dZu5X8SxRmbekdZ2CWkMUMCUaW2fPQsjPC2wSu/rHfuF4gXfzWrCrhNb/2S\nHdDNcmjcndTFiaYUrydai7A7ZdJlfW5jxTBrsOxV8r7FwW3r1C5FRHwCbCa1\nsiH1p4wFTyR+dRKoDPQ8j1cVp2imJhWDC6Akzh+uvM9ZDznqlvE71eyfDxgj\nlywEB0z0uUIt0iBanaNyVafLTt5psJXTig+O7kbUOkYw5eHDQUVsN3xdugtA\nH22yWRkNnJoZZuApsvCV6WuSd/34JLQpIO+1XNduv4CCma6ueyEtWlKHdloZ\nLxiM\r\n=SiDw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Timo972/cfg-reader&amp;utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\n- You can only set integers, booleans and strings via the set method currently\r\n- The alt:V JS-Module will not be able to import this module -> you **can not** use this in alt:V Multiplayer\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require('cfg-reader');\r\nconst myCfg = new Config('config.cfg');\r\nmyCfg.Get('test');\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require('cfg-reader');\r\nconst testCfg = new Config('test.cfg');\r\n// If you know which type the value you want to get has you can use\r\n// GetOfType(key: string, type: number).\r\n// It directly converts the value to the right type \r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.GetOfType('test', Type.String);\r\n```\r\n\r\n## Differences between v1\r\nRemoved:\r\n- Config.load()\r\n- Config.fromJson()\r\n- Config.fromObject()\r\n- Config.path\r\n- Config#has()\r\n\r\nRenamed:\r\n- Config#get() to Config#Get()\r\n- Config#set() to Config#Set()\r\n- Config#save() to Config#Save()\r\n\r\nAdded:\r\n- Config#GetOfType()\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.\r\nIt should be way faster than my own parser in v1.\r\nAdditionally is this module now a native node addon.\r\nIf you find a memory leak make sure to create an issue at this repo.\r\nContributions are welcome.\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg'); \r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.Get('mysql'));\r\n...\r\n```\r\n## or\r\n\r\nconfig.cfg\r\n```ini\r\nmysql_host: 127.0.0.1\r\nmysql_user: root\r\nmysql_password: test123\r\nmysql_database: db\r\nmysql_wait: no # no is equal with false and yes is equal with true\r\nmysql_climit: 10\r\nmysql_qlimit: 0\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst { Config, Type } = require('cfg-reader');\r\nconst config = new Config('config.cfg');\r\nconst con = mysql.createConnection({\r\n    host: config.GetOfType('mysql_host', Type.String),\r\n    user: config.Get('mysql_user'),\r\n    password: config.Get('mysql_password'),\r\n    database: config.Get('mysql_database'),\r\n    waitForConnections: config.GetOfType('mysql_wait', Type.Boolean),\r\n    connectionLimit: config.GetOfType('mysql_climit', Type.Number),\r\n    queueLimit: config.Get('mysql_qlimit')\r\n});\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"default":"./index.mjs","require":"./index.cjs"}},"gitHead":"4df82932cf3be3c8f00a82dd95381c6fd4084147","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/index.test.mjs","configure":"node-gyp configure","postinstall":"npm run build"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.11","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.16.0","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc4_1616772411389_0.017644858380367","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc5":{"name":"cfg-reader","version":"2.0.0-rc5","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc5","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"776a47fe9e0a225543c3bb13bd2961f1b1e6748d","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc5.tgz","fileCount":17,"integrity":"sha512-i7jD9VCxr3JIH7CO+Z0+NgEGDczOTuHrJbSFSZyDDV2ui2kQzI0sK0IKK+mpznIKcqr76afX2jvMJLPGGInG8Q==","signatures":[{"sig":"MEUCIQD7jX5o7gz4dmSYAOPGAZ7uNrvXAzSF/mlNfIJRX9FeCAIgBlJL1eLcqfRg/3I+juKI3+KsTeTXvdK++zCLxvu3ev4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgX7GJCRA9TVsSAnZWagAApNwQAJPbHoIW7WL17AGypbXO\nhNnk14XIEJoqydBO11QqWNq7gik9D62MRM8kkUAJJTR3oYEkReHWs9xI1liH\n1GZyHW9hkQhcVGk7QQetAp8XQebKfi5gHZU8wHSJXC5VYzrmaoX1YlN6gBuo\nQxIxkGkUNPIz25evVW2t61E01GcETRvkv4MLBj67pSGHK6kOS4yCOCkUs64q\nPpguNVjEtqo90jfyA450jRMb0UKRluAgBy44frSd59Qj/Zts+kY+mPnU712S\nq1eLC9Evva1Bw2PTiaOSjiIzzQBO+9CpCU7Rl5VPxDNS7o4zZbNR6BgfuNRc\nyntjwMJAu0R3Lhs6bO24Xa8gQtcxlmthekO/cimq26/n8It3jP7ozmurd+An\nzndsMYnHkSbRyfFqwpFkTBSQASGc/AJSjLjECe0WWNrly64jIITa288qmRFm\nHJPWCpTX492CH5XNEByvZaFJD9rQaS6GsME2Ccu1ONby0M1LDYDkkpQAyjvT\noFXEOeIAN6eq7HfTLZkCUiNXxPPtugfiukWNQRU3KwYmGFcHxiWSaMI5s+wu\n4dpQAjUs/YSXuLkzSSqWuEE4DrFKDhhNeyyDPCA6sNkesHu60YBYPppMJjKJ\nAYMh01IhoOqp+WB0HQWzFM7g1AoNCL+jd5VxlHwxIkmZZOqnAi+Ng99yCCfc\n1EDY\r\n=oVZy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Timo972/cfg-reader&amp;utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\n- You can only set integers, booleans and strings via the set method currently\r\n- If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require('cfg-reader');\r\nconst myCfg = new Config('config.cfg');\r\nmyCfg.Get('test');\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require('cfg-reader');\r\nconst testCfg = new Config('test.cfg');\r\n// If you know which type the value you want to get has you can use\r\n// GetOfType(key: string, type: number).\r\n// It directly converts the value to the right type \r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.GetOfType('test', Type.String);\r\n```\r\n\r\n## Differences between v1\r\nRemoved:\r\n- Config.load()\r\n- Config.fromJson()\r\n- Config.fromObject()\r\n- Config.path\r\n- Config#has()\r\n\r\nAdded:\r\n- Config#getOfType()\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.\r\nIt should be way faster than my own parser in v1.\r\nAdditionally is this module now a native node addon.\r\nIf you find a memory leak make sure to create an issue at this repo.\r\nContributions are welcome.\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg'); \r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.Get('mysql'));\r\n...\r\n```\r\n## or\r\n\r\nconfig.cfg\r\n```ini\r\nmysql_host: 127.0.0.1\r\nmysql_user: root\r\nmysql_password: test123\r\nmysql_database: db\r\nmysql_wait: no # no is equal with false and yes is equal with true\r\nmysql_climit: 10\r\nmysql_qlimit: 0\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst { Config, Type } = require('cfg-reader');\r\nconst config = new Config('config.cfg');\r\nconst con = mysql.createConnection({\r\n    host: config.GetOfType('mysql_host', Type.String),\r\n    user: config.Get('mysql_user'),\r\n    password: config.Get('mysql_password'),\r\n    database: config.Get('mysql_database'),\r\n    waitForConnections: config.GetOfType('mysql_wait', Type.Boolean),\r\n    connectionLimit: config.GetOfType('mysql_climit', Type.Number),\r\n    queueLimit: config.Get('mysql_qlimit')\r\n});\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"a73b697876d0f51bfe27bf6f64aa3f51a89eef95","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/index.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.11","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.16.0","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc5_1616884105280_0.9545380198048536","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc6":{"name":"cfg-reader","version":"2.0.0-rc6","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc6","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"9cd907a76e4efdb3f516478407a1db6e0619824d","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc6.tgz","fileCount":17,"integrity":"sha512-xx1a80PTduagApGN9nbHNGV9UmrWBl86WJCfhmgGE7nCTATVpXk3AA0UsZoG/XQ1sAH0OoKFgIYIXeVK/6HaUA==","signatures":[{"sig":"MEUCIQCDE/6KBOpZQXLF6KPmT/IcpoHOZc3sq5iwI8/caHPekAIgWZo5dtjVmYRU4tqlh84Hwqi7r4GshyFUn3aLV34iKMI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgX7P3CRA9TVsSAnZWagAALAEQAIk+TpqPGa+XeTPFUvHv\nEKH7YePppmI3grvit2EaiiYYNpeF7r5IgOTznH+923f7LTaHBaGkoiTxtbgx\nCTnYkkOkB+o6/yebg468W4JAkC1wUcZPKYYrMQT/fh+ATsSFPQd+cZOjyars\nNj1Jd+EKiTgBrLmKQ+8QFgTVWSNWW1s2D4r0KQcKUXkCzChltoYybF6/5RiI\nULHwv65SCbJ0txxSRcfRreilIA2qpKCZmT4k/qq96szeSKu7Zqj3qXswc3bU\nWgBBDLhSAPYpkmuoUsjDXFjBwIqrbnGdyKyTBvHatYZABUhKHA2Nr3W5Hs5e\nMQFSAegRjHwQIPv3h1MgwzRSUZoBVNGgRpvUcdR5aJXfih2JjDJDKxex0nIz\nwrMt+kR1ldft5f41OkQrWQAiULCuQcDCap9cpKsi+hv87vRa2FTtfX8PATeD\n6i30uJdkMZ9kweesJf8BtMrw3JgDDnJg9OlKGbNITBjBqeWLbcLm+BDa5Cqg\nSxtDu3zKuEeeEGKCW98TY1m2QXmyeqYxOsWVjocaDuIjEgYiJ9Xnue04PRnY\nDOh/T3UCjoTHqdWCTrmxM9G7PXltVS1UEil3Zg5v49TCL0vw9Q0depHGXMsX\ngkp/9UZo8v7Dq3regYF9JXg+dlc/D+OD0AWonCTsqgoOWvaBVXJHaKFjGCtt\nOUl8\r\n=YN8+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Timo972/cfg-reader&amp;utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\n- You can only set integers, booleans and strings via the set method currently\r\n- If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require('cfg-reader');\r\nconst myCfg = new Config('config.cfg');\r\nmyCfg.Get('test');\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require('cfg-reader');\r\nconst testCfg = new Config('test.cfg');\r\n// If you know which type the value you want to get has you can use\r\n// GetOfType(key: string, type: number).\r\n// It directly converts the value to the right type \r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.GetOfType('test', Type.String);\r\n```\r\n\r\n## Differences between v1\r\nRemoved:\r\n- Config.load()\r\n- Config.fromJson()\r\n- Config.fromObject()\r\n- Config.path\r\n- Config#has()\r\n\r\nAdded:\r\n- Config#getOfType()\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.\r\nIt should be way faster than my own parser in v1.\r\nAdditionally is this module now a native node addon.\r\nIf you find a memory leak make sure to create an issue at this repo.\r\nContributions are welcome.\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg'); \r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.Get('mysql'));\r\n...\r\n```\r\n## or\r\n\r\nconfig.cfg\r\n```ini\r\nmysql_host: 127.0.0.1\r\nmysql_user: root\r\nmysql_password: test123\r\nmysql_database: db\r\nmysql_wait: no # no is equal with false and yes is equal with true\r\nmysql_climit: 10\r\nmysql_qlimit: 0\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst { Config, Type } = require('cfg-reader');\r\nconst config = new Config('config.cfg');\r\nconst con = mysql.createConnection({\r\n    host: config.GetOfType('mysql_host', Type.String),\r\n    user: config.Get('mysql_user'),\r\n    password: config.Get('mysql_password'),\r\n    database: config.Get('mysql_database'),\r\n    waitForConnections: config.GetOfType('mysql_wait', Type.Boolean),\r\n    connectionLimit: config.GetOfType('mysql_climit', Type.Number),\r\n    queueLimit: config.Get('mysql_qlimit')\r\n});\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"64e37a184e9e74f527b86aedcd61c1c967ec85bd","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/index.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.11","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.16.0","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc6_1616884726661_0.9247572088996965","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-alt2":{"name":"cfg-reader","version":"2.0.0-alt2","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-alt2","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"63fc8160f586b00ffa90dd1f618444bf2fe2743c","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-alt2.tgz","fileCount":9,"integrity":"sha512-u9IWcZS3fY4y5HashDen/bT/21DPmegjgcoIQ4T7LJXZo3d8revnlQdKxSE0d5QzBl0i6xPgsJSHMzpE6Pi8OQ==","signatures":[{"sig":"MEUCIBPyz6ADVO0GcJpn1bHidcpOmThDZpw8ab4ro7/vwO9nAiEAqa72/0oY2cdOZ1jK6vdILtn/NEEX0sz1A6vXoITKGrQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":470893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgX9NACRA9TVsSAnZWagAARosQAJOLujBAXBD5/lzFLMSO\ntnNghAknWyQImdUyED/3vIrrI7xZgoHRb3X+2ymF/BDdr5lhGifK5LSm+2+o\nCKA2tOVeBjXuCUJBwpU8J0/Du7pW6cdvG+HiUX2rie15sw1HbIgB3zJ4Hf8Q\nr8tSMgWYeDrK4hGTTOwCwov6uM+73R/6mJvCrV0EDCFrJZgVOB2GvPjdrv1n\n8xblOOn9C4VglteMAJhpmnb1BhHw9nPJpnG8/Xx5B3xBtjTJQFSyVp0MLq+T\nICCFUn13Q+ZhRyPRwTGWGjMugiIdJQ99YT+lUJ+p2uag+6Vscq9C+6pr5DNC\neRchPBx2scseOko35U+6JuUBTL8tj89o6xN8t7Rj7eBwFPHtFzNyzNjJCZga\nGhxoKsQ5WkYvM1TJ5+8QFdjG3ojsxrkykI7uHTWZdUW/rNYjtAsqYnI/Eho3\nEQNxCDpKOdfOTEubaWZJbmzCK/jKGs3YXWuaXjxnLpOegf+gIeca6dXt7v42\n2SeEP47hSdMEhCyZqFIhNcE/8piK0N1Do9t8dNUZJKhxHtessijvvLtv3d7E\njoxW5qSKi7yxYYVtWeaxWX5EB27cp8O/5gjf28ssRGeuW7wAa4GiKunF4kd0\nEGvfii7yOxB6KPzZPy8bfnHwLdqpe1eeBR7ByLLPoQ6Ksigp9nklvr3bhtHu\nFO5w\r\n=9N7u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Timo972/cfg-reader&amp;utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\n- You can only set integers, booleans and strings via the set method currently\r\n- If you want to use this module inside of an alt:V Server script, follow the corresponding installation\r\n- This module is built against the latest alt:V Node Version, which is currently only used in dev branch.\r\n  That means you cant use this module in rc or release branch until alt:V merges dev.\r\n  If you need this module in release you should use v1.3.2 or built it manually with the wanted node-version.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n```bash\r\nnpm i --save cfg-reader@alt-node\r\n```\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require('cfg-reader');\r\nconst myCfg = new Config('config.cfg');\r\nmyCfg.Get('test');\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require('cfg-reader');\r\nconst testCfg = new Config('test.cfg');\r\n// If you know which type the value you want to get has you can use\r\n// GetOfType(key: string, type: number).\r\n// It directly converts the value to the right type \r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.GetOfType('test', Type.String);\r\n```\r\n\r\n## Differences between v1\r\nRemoved:\r\n- Config.load()\r\n- Config.fromJson()\r\n- Config.fromObject()\r\n- Config.path\r\n- Config::has()\r\n\r\nAdded:\r\n- Config::getOfType()\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.\r\nIt should be way faster than my own parser in v1.\r\nAdditionally is this module now a native node addon.\r\nIf you find a memory leak make sure to create an issue at this repo.\r\nContributions are welcome.\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg'); \r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.Get('mysql'));\r\n...\r\n```\r\n## or\r\n\r\nconfig.cfg\r\n```ini\r\nmysql_host: 127.0.0.1\r\nmysql_user: root\r\nmysql_password: test123\r\nmysql_database: db\r\nmysql_wait: no # no is equal with false and yes is equal with true\r\nmysql_climit: 10\r\nmysql_qlimit: 0\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst { Config, Type } = require('cfg-reader');\r\nconst config = new Config('config.cfg');\r\nconst con = mysql.createConnection({\r\n    host: config.GetOfType('mysql_host', Type.String),\r\n    user: config.Get('mysql_user'),\r\n    password: config.Get('mysql_password'),\r\n    database: config.Get('mysql_database'),\r\n    waitForConnections: config.GetOfType('mysql_wait', Type.Boolean),\r\n    connectionLimit: config.GetOfType('mysql_climit', Type.Number),\r\n    queueLimit: config.Get('mysql_qlimit')\r\n});\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":"v14.15.2"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"5b73b2a47afef152d04ed8e9724b09b41638ad90","gypfile":true,"scripts":{"test":"npm run test:altv","build":"node scripts/get-node.cjs && node scripts/build.cjs","clean":"node-gyp clean","install":"echo \"alt-version is prebuild, have fun :)\"","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/index.test.mjs","configure":"node-gyp configure --nodedir ./deps/alt-node","test:altv":"mocha --timeout 60000 ./test/altv.test.cjs","postinstall":"echo \"should be built already\""},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"7.6.0","description":"A .cfg file reader","directories":{},"_nodeVersion":"15.11.0","dependencies":{"bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"fs":"0.0.1-security","mocha":"^8.3.0","altv-srv":"^2.1.1","download":"^8.0.0","node-gyp":"^7.1.2","@octokit/rest":"^18.5.2","node-stream-zip":"^1.13.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-alt2_1616892735748_0.47546933284035475","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.3.3":{"name":"cfg-reader","version":"1.3.3","keywords":["cfg","cfg-reader","config","alt-config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.3.3","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"78b272aec1d8c0f56f3c8102d7801f5f4abd5be3","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.3.3.tgz","fileCount":22,"integrity":"sha512-Ka/73KolSModErh8FFl6onrb6nVqirAxInmMIKV3K3DtFPLEIawYX8z6shaRGTj3L73R4jDA3bpUO7KxCYcnhg==","signatures":[{"sig":"MEUCIGlb2CgJ1WukeKWSNM1tVvx9oNm5SDG5zgtB0taZgn7eAiEAp/WDNapWIiAW+ht2Kt/gexysLgDccL9DiT1RE2j84D0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73711804,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgX9Y5CRA9TVsSAnZWagAATV0QAJl34hSUN2Fgy/E8n+mP\nplPEWYQNqyLqjelQzlgVZR5rZrNJm/RdSV1RM3J0lzK2CLTxv3qRzUjLB9p6\nwxGHdjEu24J0hhnbNjqWzXTfqZKg47G1qFoZN5CLEDOA9ntIMVh5vIwzI10y\nQLbnYztVMnElUre9WO4Q8ph3h3bRZSqFZ1JcnJZ9+pevaTkNUqgE9lYRveB1\nclNflDsjg0BjZDO1b4QxuKgLp2dC6E68DfN8AqJfDqAjnf+vyGJwnYTb0euv\n2zVcV0p4w+jEVCsPgksfU27yNHq+++3K+lBy23jF4WFWSSs9i/+Xg8LpwNBs\n6IoGbWZBWKJd4aPQwfetHgwe11EJR35aoyrMjJysAiq8YG4lQF/59NSluX5b\nCPMk+pgb1vbdnjP2BbZ/nVTKNeKOfFGGFyICg94jmp7mVaEpqzLb59a3wXZa\n6Z/oXgBOtFq7e+wcZm7tbNV2jmuVHh+KRW0/kYq4LLuNwnD5P4IrYPGsKkax\nl/uWpbor3T9gnDhI+RHhlOGPbzwvoZwuz5d7/e0cQNaWxZBJla3xUPr9vaJa\nY4r82xYDms+rMR/uhX+lsZ5+Tg5utvnoIDnibDLkNGTEbhRoDnMM8u64ZT0f\nSaDxyZclIR3EDEZRJBxJSK90csVs7erhuH0/d5zYPXR1zdjb7ggvSMBDE0zE\nP3qf\r\n=+dDl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.esm.mjs","engines":{"node":">= 10"},"exports":{".":{"default":"./dist/index.esm.mjs","require":"./dist/index.js"}},"gitHead":"178362887a8512097615bb24f3ddbcafba31893f","scripts":{"lint":"eslint . --fix","test":"mocha test/test.mjs","build":"rollup -c"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"7.6.0","description":"A .cfg file reader","directories":{},"_nodeVersion":"15.11.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.3.1","eslint":"^7.21.0","rollup":"^2.41.1","prettier":"^2.2.1","typescript":"^4.2.3","@types/node":"^13.13.46","@types/mocha":"^8.2.1","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","@typescript-eslint/parser":"^4.17.0","rollup-plugin-typescript2":"^0.30.0","@typescript-eslint/eslint-plugin":"^4.17.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.3.3_1616893496335_0.2845137981442194","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.4.0":{"name":"cfg-reader","version":"1.4.0","keywords":["cfg","cfg-reader","config","alt-config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@1.4.0","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"5c4b5c1117f7472b35e58953b79ff8814a4848b3","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-1.4.0.tgz","fileCount":12,"integrity":"sha512-WrQbVSy4h+DdDLNr3V1L6cTc+4OpWgrMC+qP206mg4Ac1eB7uuSnqk7zIxhZ5Xa1XM8bDL5RJU2NwFSUtzcIVQ==","signatures":[{"sig":"MEUCIQCTP9TxfgX70F7U+uNnTFfsuFN8z216UfGUFUiNJz7fAgIgEJynIJhlIsVcBSmWVx+IQqA2tZQqCi1I6GhCoTX0VY4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34316,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8cUWCRA9TVsSAnZWagAAmgAP/1oSHes/XKB0eEROT86S\nIY2SkgYw51In0DydEZP7QOmg/YWyjGXYXwMcnzXFX6xKPzVFciCI6ZMA0D71\ngjg+sVLCiq46s+vi7jSgu0c1KZcsWxAEPTf7MJ8xhyWsnNdYuJZ7CgbvlSMy\nC9/+KssyiyAT3mVA6N/GQiSWD8dgNxZC0achzQgES3R2JSdl7xgDrSPMQ4Eg\nmBkBIUa13v5D98H+77VpKeIzpXMhvavwv5B9VRTFMkK2fTdm7ZOzXPrK7b3h\nQoozK2T48fmtDhYC0xIdkitnL+QOdgc3vE/hyZ7i3+v65Wm9assz8Rjuw0QX\n+eAwYMirCT8VyzAi6+2EOFlH4cKPD5XlWbxYytiQq6te/A1zJNdJ78Xav3bQ\ncFkcoLncDwsjywXtloLBlHIegWwmb0vQWQoDsIxqo26KJkXwdeu7s+joKL8B\npLKmMeV0AGp9HQh5HP3mN7zqAm5mgiruHD9IKz8nYZ6XPbpcS2B7czjlMs4r\nVvjSrMami5ZyYmqGNMUZkqH/EBF/mQlH+0h0+w29stl7IugfJ/dorsPQgWOS\nfTQEt8CQTiIYrrLYNNED2hZ3CX4z+otWVZKXJbjhgln3b23khr+pj2aQFxAQ\nt/CfZO2ClN/GfSM5w/IsDmQn0o6aY47bsxeAzvVMkbmKSZQlHActaRCrX6mW\n8pSf\r\n=ehmY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.esm.mjs","engines":{"node":">= 10"},"exports":{".":{"default":"./dist/index.esm.mjs","require":"./dist/index.js"}},"gitHead":"67de650e72f119de21825a3eec17490362cc9b88","scripts":{"lint":"eslint . --fix","test":"mocha test/test.mjs","build":"rollup -c"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.3.1","eslint":"^7.21.0","rollup":"^2.41.1","prettier":"^2.2.1","typescript":"^4.2.3","@types/node":"^13.13.46","@types/mocha":"^8.2.1","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","@typescript-eslint/parser":"^4.17.0","rollup-plugin-typescript2":"^0.30.0","@typescript-eslint/eslint-plugin":"^4.17.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_1.4.0_1626457365928_0.47616724900367347","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc7":{"name":"cfg-reader","version":"2.0.0-rc7","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc7","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"b356ed18b90c2342daa3c5282ab6312f74b0bc74","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc7.tgz","fileCount":18,"integrity":"sha512-2q249YmsEQdcTwS7KySJFjtE8rDlOQ2y152CDUlTRqq4N1vqeexH2v1PxJWTluXd5fQgWhsnvswTATuFlh9kRw==","signatures":[{"sig":"MEUCIQDDwrhUH6xGQQqu1q25BpUyu+SKs+IuxiM2Ygffn2bkCwIgKDr2xOYcKwIleH9V5Tef0B4BfClf0EB78v+4hL/zzEA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8si2CRA9TVsSAnZWagAAvqMP/jScN+5MGM9dnOJSC8Qd\nCvffJP/TwyfyIDXQPUEJDybGZhoArQbZuBJ7r3L1vaG1xyGHS5p0rIp7UrqE\nsz2HR0naGGcKj88hjc6ebQK5MqJSqJ9e+Mtf228d8i7vg1rxkEiHo2bfH8L3\naPTBP1qdXgErLF+UOnm8f5FvUHEs0jU63w0GphaAgyZL6NYNe5LsqUwkK6ml\ncScGk7Brgnqd9pRnXjWFZPr3501M8F80fzLxVAm59LVjizq9zn+XjyMRd0DG\nPFhzBe6URkfeQm+rU7dETz+I4CtAihusEhnbvOV1jBUDDj7ZphjOVaVQD/s1\nSjecuC0F5qH5PFCW0LfjoWemWfrtvHDfOCjB5sUAm3X22sAemclr7XFFne60\n0WvBetajyCZtY4MoL1TWaUqlBwi0U84+d2Ps5gzJPLPGvVtDA9Mfr9Wh3dJs\nXyjrJYXTBEgeEtK9ZxKS3d+DFwIj0q13qntAxdSlfSJAQ2Kj9NyuKJpBHi1U\n2DzPxOyx2H+Hq8et1Cos4Yi4WQ7IyhaIj9IbOxfuOTofv2l+o/UahKZtpXy2\nVVMXZUe6KlKzPMvCOlycX8QZaSmorDp6T07PXmuGqDeaAYxzO8Seo2xJ4wgf\nbGLC5oFP7hVVFj4dfXYmGdRVACgfTWNRhza3K56eoWyOYuxoDM7QNu5gkZP2\nl/TK\r\n=MZ2J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Timo972/cfg-reader&amp;utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\n- You can only set integers, booleans and strings via the set method currently\r\n- If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require('cfg-reader');\r\nconst myCfg = new Config('config.cfg');\r\nmyCfg.get('test');\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require('cfg-reader');\r\nconst testCfg = new Config('test.cfg');\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the right type \r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType('test', Type.String);\r\n```\r\n\r\n## Differences between v1\r\nRemoved:\r\n- Config.load()\r\n- Config.fromJson()\r\n- Config.fromObject()\r\n- Config.path\r\n- Config#has()\r\n\r\nAdded:\r\n- Config#getOfType()\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.\r\nIt should be way faster than my own parser in v1.\r\nAdditionally is this module now a native node addon.\r\nIf you find a memory leak make sure to create an issue at this repo.\r\nContributions are welcome.\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg'); \r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n## or\r\n\r\nconfig.cfg\r\n```ini\r\nmysql_host: 127.0.0.1\r\nmysql_user: root\r\nmysql_password: test123\r\nmysql_database: db\r\nmysql_wait: no # no is equal with false and yes is equal with true\r\nmysql_climit: 10\r\nmysql_qlimit: 0\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst { Config, Type } = require('cfg-reader');\r\nconst config = new Config('config.cfg');\r\nconst con = mysql.createConnection({\r\n    host: config.getOfType('mysql_host', Type.String),\r\n    user: config.get('mysql_user'),\r\n    password: config.get('mysql_password'),\r\n    database: config.get('mysql_database'),\r\n    waitForConnections: config.getOfType('mysql_wait', Type.Boolean),\r\n    connectionLimit: config.getOfType('mysql_climit', Type.Number),\r\n    queueLimit: config.get('mysql_qlimit')\r\n});\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"4da4440a021296bab538734676f97808996b6f63","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/all.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc7_1626523830228_0.0914760749886836","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc8":{"name":"cfg-reader","version":"2.0.0-rc8","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc8","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"a20455c98c83cd6ee1f116720762dfafddd6d388","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc8.tgz","fileCount":18,"integrity":"sha512-9fp7jFUATkTg02y9CXlJ7f3DShmvczLpwQKSQeIhukN+lvXsNmi90qzAaEbuUwkvCTE7PCGyxR0tL+g4ygB31g==","signatures":[{"sig":"MEUCIF1kv5dgb0/mLf609T66BSpRmp9kkUwq09nzaLSYVbR6AiEAzyhV12blmtv0M8F3U5fLcEiXwNilIbJ0cAYJz+7ayp0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49150,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8tnJCRA9TVsSAnZWagAA8zIP/0JFc2xZOQRs7xfkeMuj\nOUx2s+FasHKqb7QzicroDOXFZbGfKmBKiEfN9UhYgbdgTU9g/UwCpeMBEAP2\naOgYyvJX6WnBggNR06bLTmtOvRxmsdL6HgCXxt1AJvEnTx49GljhIvhim4wo\nmKDpvUOrbCLaHHucUjAHqE/yoDwTfDYrlLm/yHuxC9iyKlS2HceDbxkdtsBu\nybc21WW8BxYBHU4RxFETp2/caqwBqPiywaalmiV+JSKiM6BRdo6P0rMmTEHE\nE15GkPMAp2aFR0pOMgAao83dg/AOjYSrLxkWK8oVnSgnHxACg2lyWl/g+L1Q\nl1ODEMBfceKNR5m3KDbo30PkI3+tVJE7BbyCk4reWRfaYPWTWePQzZI6e3t1\nRfCLkMWAKoyR0BH1soVmo6QionCGszZPSeG7Ffx8VcBUMlqtGQ9Q8hG8/TIJ\n142kj5qMrEyrpYDDPJDOG7HXfl9v3JetHuFdFZkE0j2k0yBqhPW3fm2u6vNZ\nElJOMUAbRnYxNtZGu+fvNf30mDpvzp5QmGUtdoTzMyr8PWKSO/Ntsvdz2QIk\npMNI4/8NArPL0DlpAlKsChNMULP/6sNLyg/SbBvMRddVndShN48CyVET0i4y\n70LyVj+Qjy2HFOJYNJM0aSzeHme9zJMzJl+zpYetn2aRXtXoCXFo97NQ8+xB\nbue+\r\n=F7Ia\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Timo972/cfg-reader&amp;utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\n- You can only set integers, booleans and strings via the set method currently\r\n- If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require('cfg-reader');\r\nconst myCfg = new Config('config.cfg');\r\nmyCfg.get('test');\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require('cfg-reader');\r\nconst testCfg = new Config('test.cfg');\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the right type \r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType('test', Type.String);\r\n```\r\n\r\n## Differences between v1\r\nRemoved:\r\n- Config.load()\r\n- Config.fromJson()\r\n- Config.fromObject()\r\n- Config.path\r\n- Config#has()\r\n\r\nAdded:\r\n- Config#getOfType()\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.\r\nIt should be way faster than my own parser in v1.\r\nAdditionally is this module now a native node addon.\r\nIf you find a memory leak make sure to create an issue at this repo.\r\nContributions are welcome.\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg'); \r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n## or\r\n\r\nconfig.cfg\r\n```ini\r\nmysql_host: 127.0.0.1\r\nmysql_user: root\r\nmysql_password: test123\r\nmysql_database: db\r\nmysql_wait: no # no is equal with false and yes is equal with true\r\nmysql_climit: 10\r\nmysql_qlimit: 0\r\n```\r\nindex.js\r\n```js\r\nconst mysql = require('mysql2');\r\nconst { Config, Type } = require('cfg-reader');\r\nconst config = new Config('config.cfg');\r\nconst con = mysql.createConnection({\r\n    host: config.getOfType('mysql_host', Type.String),\r\n    user: config.get('mysql_user'),\r\n    password: config.get('mysql_password'),\r\n    database: config.get('mysql_database'),\r\n    waitForConnections: config.getOfType('mysql_wait', Type.Boolean),\r\n    connectionLimit: config.getOfType('mysql_climit', Type.Number),\r\n    queueLimit: config.get('mysql_qlimit')\r\n});\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"abc156ccbc77aba356cbdc1d29c245afbf391979","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/all.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc8_1626528201570_0.2306008643120887","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc9":{"name":"cfg-reader","version":"2.0.0-rc9","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc9","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"780daf04510b20d65ed56b8048672b05e2e1b64d","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc9.tgz","fileCount":18,"integrity":"sha512-yloxSETzk3s+4bl+Ipcsa/03NDSBsUVqiObRjXtEdQCFLHp67DNmkZ+TyQSXPr4ptQHdV9Em/c07mintbJev6A==","signatures":[{"sig":"MEQCIAgdMuJ/KwROnHhMvQZs6ZtgkPMt4lFtnSUshkNuN1JkAiB/ke08A1274dUGNm1mbZih703hmZ22kdNqW89W8w7AHA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8vlICRA9TVsSAnZWagAArcIP/0FMiAGUixKygNvjw6Px\n8I1mMkBb+PnHp5rrkUfdRPn6LTrAXMOy6vBNgV4JvosNMPEJDsw9EXFPR9Mn\nC/b8463nF8guCsQZNdTzG28X5s6taAfOkuSxDOIWuIO+bTYucvGGH3xCyGoh\nKVr+v+zpbNYeVqrjcezPvkN+VFIiI1iWFhtbJQ7ROLFVhvC3gc9CvEOeNFwW\nYmTAYftwnC/wQzWSTAcxoLnN8Y6+ueP/iIGkWYr+PclLKuX2DV6lJoiJkYe9\nfDTdtwjxpLmQY1hZwAzHLaoXkCy+6TUX4ZGfgqrdFviqQJ5WzLJTpXTk3IQu\ndU+4gn9fP/NWTHyo+aRNKNRz5e9pu43ees68QoqFdZMbAKcJ2mhWkOhM1qU1\niP5ih9ZZJx8hQE76FHgwvpsSwj3xvVyt2f/uKjY1seO60o1bLRVQqaogzo2c\n2W5gnyv7X6yfVsAGMGnv67WFhhWseYIsZXlKsxBeeKx1OVF7q6SyEXUcqfTF\nnC1L4A0xA9PIO0AHyL6n3o5MuLnwttlafXWlEpFUqrvKymYTuG06R7Ni4Aer\nTOtFbx7Cl6IrWqoss1xuF9lLx41rf/C6L2snECiIRL4pLgL3xREn3UHmbq0Q\ngD99Jkx6Ads7MfRxLOXEtSTaVpnztQLnxTTjQ38KrGqAnlqjzAX7OB4G7KCi\nqxkn\r\n=R4ux\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n```ts\r\nexport class Config {\r\n  constructor(fileName: string);\r\n  /**\r\n   * Get a config value with unknown type, slower than GetOfType\r\n   * @param key {string}\r\n   * @returns {ConfigValue}\r\n   */\r\n  public get(key: string): ConfigValue;\r\n  /**\r\n   * Set a config value\r\n   * @param key {string}\r\n   * @param value {any}\r\n   */\r\n  public set(key: string, value: ConfigValue): void;\r\n  /**\r\n   * Save the current changes to the opened file\r\n   */\r\n  public save(): boolean;\r\n  /**\r\n   * Get a config value with known type, faster than normal Get\r\n   * @param key {string}\r\n   * @param type {ValueType}\r\n   * @returns {ConfigValue}\r\n   */\r\n  public getOfType(key: string, type: ValueType | number): ConfigValue;\r\n  /**\r\n   * Serialize config\r\n   * @returns {string}\r\n   */\r\n  public serialize(): string;\r\n}\r\n```\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"536ddd6ae9d94189ae188fd1467b7760ef816a59","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/all.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc9_1626536264046_0.5262220909251847","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc10":{"name":"cfg-reader","version":"2.0.0-rc10","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc10","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"926ad265311e5bbfab749d8d1bf898d78964c902","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc10.tgz","fileCount":18,"integrity":"sha512-6FGh4gyM9Z4WHvfDIv+pBVlKFPxf0ZLfyLrfJEzLWbBaGvEXKk4dq9p4fgdgkpzIzDsURj32+wz+Dg4QDT1FMg==","signatures":[{"sig":"MEQCIH93jTLq1Jzp8Ba7cT5SBQvZMGYUf1XMpq67tag74C2TAiAu3eThWx88ocaao7ZjxojNx14uq1GAmFHSmT5EhF+31g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg81FLCRA9TVsSAnZWagAAhq4P/i5ncKebyx+1KAM/LXJc\ni0LY2FnWjIoIMYemHoLOrYkcjo4uC0PnT+fweR+iWwyDs+QDSMGYL3/TZ3XJ\nEjHnAYHSn1b1rDyPSaXsZJb1ZjRUC4DqwCJWjPtPF89vS7f+Tl5bCd7//+2u\n0LFCBJtF8z+h1b9y3EY/h6FLos5yIgGruOSsAwWXWPFzlyvoG999NH+qduWY\n/BvxpK62xSwL7GZFqMY8iM4+fADcfzkTYIzrdCHmWP5p7bld0pfsgp82/So0\nxIaqV8YeI3o1/ygKzASXp2s/lzOplpga7URieZB/dfEhoH63k7LYSrNmWx5Q\nnVBVemsZwX4VY+TYMOMfvSuqmb6kcPq31dXOatUbmZ/LRB8+k1gKBFcAAKTA\nYi/6uZr4flHfNVp+ndSl9m0Ai41uLYp9n5p9vH9ycN0PGSwuQdlfPiXjdVc2\ntDia9qLuDgUnJcDOuRCVeSA4soakhIBajb0DpcUWSQ8Up2fXEIjLnmzvs2Sx\nZG9Rr3xSkGdqzuJFc3d6kaoI9bPD/fMDxQdR4Zpn4HCQb+tFtGJkAsfnDW4S\nIPIR7dHgjOwCARD/6xGyjjAoZSiyxn1jcb8FRl1l1RMVylW5/HtjTun2trTg\nFQLj97FXvZCNDnjglMJi033SmqDP8sXSTnAkpRNqdSc8KRnhT6zVxSs/OoDk\nctS1\r\n=k0AA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"44e86cdda30e4f26e0047593f36ad8ed0dc58a9d","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/all.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc10_1626558795594_0.5062243371096233","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc11":{"name":"cfg-reader","version":"2.0.0-rc11","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc11","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"811a82ad26df5a94839a5f07707fcec357142c95","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc11.tgz","fileCount":18,"integrity":"sha512-uhnYg9WUsUebIZLYLSe/o0wXa7B+lXx10byjJf2ymdRZE5ZnHT5l7iRqKrg6JmM4nYohjSfhXfzjS9l8EC46zg==","signatures":[{"sig":"MEUCIEOOeeonC9rYokPQmKETu8arPZ/OLgW7fA+pjUs6CFi9AiEAydwxBLfAcqBzWjoFRUpJmgNX4yDYRlmHSF6mheqYiOw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9BQDCRA9TVsSAnZWagAAeMUP/3O6rlAZj8ftfL/PVkWS\n6mguXrLwDWiLMsJC59n0k0q5E4GVBajmXcwpqIUSf9PjysFkGBCTRDhWnVZ2\nXBW1CgsTMjCcbF2IHiNUX2FZ74MkNbMMQEG7ZVsTxkLTUEPMyiB+L6yf8ahb\n+W0KMZ3nasxK4w7chL9eiy98bvZagrTpnIOXT1VPwmNMkrqZ1+KqzGsSTK25\nHqawILOPJP87G1bneexsVWaXsvgcHeYG5r/IS1orU5jFAlsPMzMg6xSOoLh8\nFk+YBa1+yfA3ETG7CWiHCg44dmpXnPXTYvT7CDr65LIS7Y47vm1PR6S5UXQk\nyGZLPuGQOIpDefnFY9DaFHc3fXpIalb/bljM1hx02DGgphoxIqAnC53azdbh\nyeY3+zuNMGA+91z76ox+ojVhhL4wi5QedBaRkVFznEtFm6P44KkcCD57/Hl9\nb7+2MghFkZfv0a3uCFTeZXTJjk8D5Tk226M9znsms19a6AIFcXr+8KEKA3g5\nJpDJimAAetYcy6aynNn7RwMOLsYT0IzBx1Dx+dgOuwFJW3Yu/egRuSRypjHG\n8ngaUEyHZjjuRX+I40D+Bc1CHux4IagI0VLfCiupKlS2rJ0pKOTHlztWgwn+\nADS4kHYhCKEpcp19+OJWSDUBWp4StDr7FwlBrRlu1V+1y/rR5/VD/Bsmo9jO\nYlb6\r\n=ZXri\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"4cfd399622a03107bd982ab4197d59a5384b1e3f","gypfile":true,"scripts":{"test":"npm run test:esm && npm run test:cjs","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/all.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc11_1626608642892_0.14871193109874548","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc12":{"name":"cfg-reader","version":"2.0.0-rc12","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc12","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"a19e064ba410fdcf5fba14f8aa8e17e834ccd624","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc12.tgz","fileCount":18,"integrity":"sha512-CCYFGuo/MIfr2KT07eHNUefLuc7gFqvw/C6AgO1RuxrJSWGRfWAfbfiB1bNTGcFEPaX/UCvvvehSYd0QOZ13VQ==","signatures":[{"sig":"MEUCIExcD9aD/WDFgz7bRLugbXetIkfATJqXDAj5JimeAnTFAiEA61rus99HDfDDjO0Ed9GH/ZWUusVKlDt1CpNaev3glTg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9BrJCRA9TVsSAnZWagAAGGwP/0OoUWKztvgJJmyxw0DU\nL5N/TxzEbbZyarmbM0VYU6uw8X3WKujIhuXioQfycRW7YDrYhKCm7MEiLgmD\nslfkpCXSl4Gz8ofoToR7OHMceWw5npvjZUaqOtZux4aooTmi49SzjJ5y2GH/\nZVUGdEflSIBv/MFWPIQoUGerwoYrbajsLZ6ush4bQktxSAr0aXoWd0MzkwMs\nbFMfFgaonddR4p7pFbtK4omKm689c327Puzd61F2sMDEm4lMTozu8Jlbivsq\nUlcLBh5Mu7DTeBsZznTR3LQ1Dt9tg1Ra1sbxaWixIwXZ+88BIyUUVr9niyqP\nJLPcw1H/96xz9mxwe2K3jzqEkGLdp1T9O3IY75OuYKxFG+ecwjruBMavxyjy\nRCUKNNfZ88BfTPcTCH0/gXFUO7prSoSJ9kUYkxhH0WbRPgwquvCqvOm5wqMI\nFzOaKx7yx9HT8vgTthPjLHdJLlTuKFltW3+Y6xgPbdS5pY7PQP7zkLHhmPeR\nyKKSwiUcxEWKZ6c30cknMoPseCJzZPo5alGXyk7tn+W5FxJxr45qBnj4dcvX\neBp1f6qQGG25Ev7swSwd+VqBwu7s7O2cQCx25dy1Kr/mb9rbvrlD9pBuW6Ti\naB4ecGpd2vRZqRZgwhSUixQz2RxmfxwRMDawYozVJV8R67sBnRsPSp8QhGO4\nP7rV\r\n=BNwN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"8e8e4412240457653c0e521bf326801e775576e4","gypfile":true,"scripts":{"test":"npm run test:esm","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/all.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc12_1626610377471_0.5232040815077694","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc13":{"name":"cfg-reader","version":"2.0.0-rc13","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc13","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"9bb5b31de5c1dabdc1653e06e6c6f0ef1fb6d8d0","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc13.tgz","fileCount":18,"integrity":"sha512-burQfYUD51lXpUjrWvub++tT5U5+omIHScJeNXeVX7uLua53FkJeITbTd1KSKr17oCY+zIxtPeJQ8HOD/eGnAQ==","signatures":[{"sig":"MEUCIQD9n6fMA5S0dN5OwHIG3VQjWCRmQXPvzEd+44NGl/v7WwIgQECM/ezgqO0sULFj+5YN0WQjd8RKFySu5mrQQfkN5YU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9IfPCRA9TVsSAnZWagAAr4gP/R6EsPQLoEOTVDPZH3R0\nO1ExmubVtLctZeoJYKP4xorH+p9EUNmffxRMX2I0J905Fvn1+h90XZAa/KUz\n1u12Kjrfy45afG+PPnvOoBLFowB6Xq1Rxd+62n0qCHICWBbeaQ3+5QXcIzGa\nQUKrsEsuUBBxmNpM07P7xHG/8NiT64g02en2Y1Lur/gy0Y/yTCfXozN3D0pg\nv6PDGq5bDBn+8xAPf3BpIkfsVmB+UpGkpDu8KfJZ40OHkKu2/N1TdvPM/XcN\nCephMU0yHKe92Dl5k+s8RtWe+OGN3Ma99zJ1Kdc340jU38vNEVva92/N5Sig\npODE33BZWXPjpmixSR9AgfG3cky8Sfpqi9E06B7vLYERSsMqvbv1J8P9O2+K\nPYs3k7OPnAxRo1oLvSf+6MI5HHIH8AB7x1XDzQ63AYQNn9ToQY8CCrMUAsvH\n3mpGi/JMqxyLdE+jlrg1y2sQ/qeXYnqcHE7Aay7LNkgjShGEb6KbyzF3erBK\nvsLv4YrckxetgA2pD6HXhfhBAqoVaT7M+3NevMh2pv6/w97eW9211b4VZkpE\nrdoqkR82A5k2slR0lGU+4B13nahtLALmDIMTFLrfRmjh36RZo3/DqhQH3teo\nGLOMKpmCv3qn9yIw7xM875Ht9hqPKwMXi3E/rrJuXVG2qW3TftOL88MhqUlX\nCkWW\r\n=etzz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"e8ea8d61d39d9b4fe245f998d1eeb3e5cdc8c48a","gypfile":true,"scripts":{"test":"npm run test:esm","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/all.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc13_1626638286973_0.024454697252124236","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc14":{"name":"cfg-reader","version":"2.0.0-rc14","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc14","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"8674e503420f538aeb0a2f9eee919dd477571ebe","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc14.tgz","fileCount":18,"integrity":"sha512-wTSliH6K81PdDdx/Z79740KEMsFyh32ykrY14En+hU5NQl4kFWpTI2ppHkv8Rw4FjeOn6xD+Y9WbYyF/gsf51Q==","signatures":[{"sig":"MEQCIETuD9w4Ri0VH/vL6N4odwMH4RuLBqb+HMLcw5ijQxg2AiBQ95klswz3JejLz06W4S0+JaSDUavaAnysm7/eDAKTig==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9ZS3CRA9TVsSAnZWagAAA68P/23KCKVla44Q7KXJPrIe\ntV9wMDn2oXXoj1hMkii+uMO4sym6rIctIfVoMGI8nwm/gzxVI+qf1IG46lLx\nOV0l3NmNyW8EAJ59wYfPuEcz0E6ZCsMHyYAhco2W+Id9CbuBW93OqT1pUi9t\ne6+XuNwc292fkK3r9aEFa1NhZ9NKzQkcufxeeds9Xu/aetkQ+jKslaWHwlfb\nmQ3rtuDKdKGxylT0alHSAyjYZwgrM7ikBzWn/Ylson3uG/9TiNMEDinH4WC7\nuXXxLfGN1gHJO1ue+OpgEwEWksqFXt7c1HNe+NjfKatoOKgXkWSRu8htVMcw\nmSHldBI51vvxC5NAWsQbdW3fi55rz0OPA/Vhr4qcvTSPyCvRXaWGtaqrYnJW\nNj4NJ5MPpBRM6m2w/tnUV08FY9VpDg7x3rjzBws26J1PHU1CxZHKOqNOK6U3\nbq7URHYZ6R52q8HKE6AKFDezA1O50cLF82ka69eeIC8TrspYBRSk42798BsD\nFyWCqGdrgRdnEwiQ32WEnAIEIayoVXo0GD72xvGFl4QZKew+pB3Y1vd6aG3I\nHm17coUiD+HjXAqVzeF4T8CWRYsHTcgflt7lWHko7Z+2DF+AUgwWKB+jaO2+\nLXZ+qbSaua8acp8WTInLMuUCZw+2AvAfl+LzaxgjpC6QhOj0K3fbFM1ZQKxj\noFQ2\r\n=5b+A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"9690ce1fa8a85ec30dc268dd8fbcdfa66b9af64f","gypfile":true,"scripts":{"test":"npm run test:esm","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/unit.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node","test:performance":"mocha ./test/performance.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc14_1626707126949_0.7596223191108336","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-rc15":{"name":"cfg-reader","version":"2.0.0-rc15","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-rc15","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"ee635203266d6536ec87c3d37797161320fcb9c1","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-rc15.tgz","fileCount":18,"integrity":"sha512-6WYbwaCjSlAfdvn+T/aDmu3cPhDD4m7OV1JCsO/gqguHN7sHZV6/f6uFWmqxThlJOAVU0qMY0ESQ+z4KbOoXPA==","signatures":[{"sig":"MEUCIBjQ9jr3+humNvb9siJLS2TzIEs0E+itB9mSnwefvQikAiEA5lgOcH7YuiQUQ8cJ+4ujjJ67PkonLcVOcpDYrP7wqno=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9ZYhCRA9TVsSAnZWagAAZFwP/25mSgcGDYCY4pzofk/5\nW8BbtBr+I9Y5cnaBz4Mcje76NaFGGKg04WAJB0Ec4DSCPm1vxLGCwjneZs5i\nYccRotr5ZgubJLt8h4SBMcH09hOIyUCdZulTeOyznZdEBGlb5cMrTxAG5s3l\nRGae39tlEIibGaPQO/sUHH1CVFZxgMkrvjVwWW95Pj+mFdkpXFQEBeUjPBj9\n/MronEmGaQ+OZ9wUkSzrhdT7eBiBrr/yFZGnuuZZ1vBJSjr0n8Mw5Ic+8YJY\nQokivZFUQFbSY7uhE/yaXqxByym7MneDTRm3b1MU3LOeQRZasvBMaDoHJArb\n6hI6jqxsWfTUJyUX6iO0ya0hGC+Ue7kNT7EHqxjmQRPtcy0q5fHIoRcELIZv\nPZL6zIdlw6YSGHZRCnG+59HCmD/VBUyP3PvDsaKzrIso6boFOL2H+hlGSFhA\n2EwG3bWp9eXwt4GVbAOwmJtZKOqhh98OdIiyrU/2BdOaBEJRg5aX+qj6J8F6\njtzmL3ho5h6M4J6OY2vu8tGJKJE8uTkhELKU8cWxNSiEGWJ8VCxpYS8EiINR\nv1T3DzjKYId13LvkhDp4KzM1ENOjTWbQWHtTq9FuhmJAieq/cUGGqw9KNr6K\nz01umHsItvjZZg/vp1ZxGDHmaIHjyTNNF6dqcy9oV8DeA1WW41Qscx6Y70Os\nfoDz\r\n=aOwC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"a539f45c1f32d50bf300bb4aee8a7333a69c052c","gypfile":true,"scripts":{"test":"npm run test:esm","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/unit.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node","test:performance":"mocha ./test/performance.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-rc15_1626707489701_0.9256372340827965","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0":{"name":"cfg-reader","version":"2.0.0","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"b6e5aa575084ef1bd20adb76384a95604ad96030","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0.tgz","fileCount":18,"integrity":"sha512-bk1cZzr0VYsE2Rkd1HBiAk4QHEPXdmbvZfDYG4/6w+CjyGT4BTej/1XL0x5HuMLzZWshhH8P/5Yog6PUqW7XXA==","signatures":[{"sig":"MEUCIQD4X/DDCIMTeltPnrngCLMlHS4Eo4iGXaftJoq8jArCfwIgSgDeQHRumN4HtPhNp4jkZvs5boYteyWDCFjDUCgNCnE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52005,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9bXzCRA9TVsSAnZWagAAs0gP/0pwTT1iMiaZL1FDpbif\nciV/S1eljvADu+PwM2BZB55mDgrLhUJ0ORx9bmYHU6TvOvr0oY5WIdeiTD/k\nrYEplO87bG73tR88Zg02JcJc3WV/cx/PxdKBOsKWtFJpHXdckFXpiYYaiMyx\n2dvPsxhoN/NYPHCbaaJduwA+Wj/PnxzTRlgOqb9JUwwJafIrITvz377wj/Ia\nDghDNBOXktpF6G7iia/E4Bu40W+7TpIO9dxZfIt/3do6zMQ3IVE3+7B3Bfh3\nf2RNL+zhbuCuSOHKdmw5cZaEqScNM4CQ4EzGVztE5WgRGxXAB1kJQ9zmGHZw\nGWYFlzmmibmkyc6B8iS88fLepjSJs1bS7gwhCi6OMwQmv1zL2ut8s3hh4npF\neh0nw7Ll2H+6t/7qjU64riEr9zTw1ez9/9IaK4WILytOEVlncdW7u1zWGa6O\nezdj8fQ4vZtfq8tDI2/dizRZMigRR3AOwZTHYnWY4AnFxJWx6QXkoLtlFVD0\nGbhOOo9Ow9Dvj5lDYoW9ANKM3vqaxAONI5jRGcaWd9nuNSM1rX3qPGVdsVVS\nfKJyo6h5L8bf24IAF2eb7qF61fIPImhQE5ZHNerBHben+cF8WnH+zsn4dxSe\nLPEV9pVKv8e4sh/VxLqFWlrKnwQ39xw6kR+vJvAA1hyHj9UFwAErf1iNrjP5\n10H2\r\n=LhMO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"a539f45c1f32d50bf300bb4aee8a7333a69c052c","gypfile":true,"scripts":{"test":"npm run test:esm","build":"node-gyp rebuild","clean":"node-gyp clean","install":"node-gyp rebuild","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/unit.test.mjs","build-alt":"node-gyp rebuild --nodedir G:/Dev/altV/alt-node","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir G:/Dev/altV/alt-node","test:performance":"mocha ./test/performance.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.3.0","altv-srv":"^2.1.1","node-gyp":"^7.1.2","@altv/types-server":"^1.7.3"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0_1626715635521_0.856516896389093","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0-dev":{"name":"cfg-reader","version":"2.0.0-dev","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.0.0-dev","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"98371726caa7bc466fd4d17a6270df60e0748768","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.0.0-dev.tgz","fileCount":33661,"integrity":"sha512-T6TXAiAe2BZ7AxmR+/AplUuvrmk+E6kzWs3Y1xtOwQdPxtaE4ImjX/zQdn2RBWDWMLD1aXLjE1Gb5V62+rxBnA==","signatures":[{"sig":"MEQCIHFZP1taCad0Wcxk2dES58FmGEhsaQuhJZChiK4C8gwXAiBzf2HnQzYSNShb6EftX4j18SBZvAhtFuiHTHKSGxVQIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":567899176,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/HT4CRA9TVsSAnZWagAAT3QP+wQ5SOxksLSvBJTJdTTa\nl+KECqBikOh4jbLSB4aasDDbrV0JksszTkMTBnw19HdeA0RGa1shxBl7JSX9\nCei/LcPsbrxvFIHgA3Uk704WaqjyFboqqPj6Bx14XiQBSaPFvD3rvUB4lyjS\nauP1fu3ulAxuy0dxghpJiLki9/UtqceJ1EZhEfkzZ0LibfPEO5ScqwLd1q1U\nw0RUFdesEz4mYOMPHf3ebCS+iyQ38//KJR89K78TTIFNi8pfl+/fmWdjvqls\nv2Szl1BpyU2y+UTjegqovU/uwCgkaRfVoFZFo7js8mBWMqCgD8dYEPKHbthU\nVcqTeKfEdEV8vT2KG3hfrqSvmrWv+TL6m7GPaT5gmXwbwCKrSuFuhEWfw0gj\n1l8R2R1+5IJ//owPOH/fFv/IRoyqJFO+VfUiuXjvYdQBWFJU83CQw8vsVzqG\nqj0Gpl2LeDhcb3UIuzUCKaVSK3tuhQilNAC84i76PvJ2C/VZdJivOuuypTPG\nWhoX3GpEDsagJI3B80j/9EuiNu0qVcD76TICZXvcvJhx+5WkfTN2bC2sIJhm\nWC8o+G8Vyusko6ZW9J2M4Mg4o0YjDPpvJF87fRnF4qXQx27mqWudBaoBqGOA\n1ZwO7NPGGYX7S9kpf8dXg2DIb5S7FyKx42yoKtX/TyoKmHXLZJYqZCYBSP95\nZTFT\r\n=MAS3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"9ac7aafacf31234c77e247ae0ac1deb9d5aa6ee0","gypfile":true,"scripts":{"test":"npm run test:esm","build":"node scripts/build.cjs","clean":"node-gyp clean","setup":"npm i && git submodule update --init","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/unit.test.mjs","build-alt":"node scripts/get-node.cjs && node scripts/build.cjs --alt","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir ./deps/alt-node","configure-napi":"node-gyp configure","test:performance":"mocha ./test/performance.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"deprecated":"custom","repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"7.6.0","description":"A .cfg file reader","directories":{},"_nodeVersion":"15.11.0","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","download":"^8.0.0","node-gyp":"^7.1.2","@octokit/rest":"^18.7.1","node-stream-zip":"^1.13.6"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.0.0-dev_1627157750064_0.8968291462342113","host":"s3://npm-registry-packages"}},"2.1.0-rc.3":{"name":"cfg-reader","version":"2.1.0-rc.3","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.1.0-rc.3","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"2912e452020453d3341883f2e766a1695d4a1b77","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.1.0-rc.3.tgz","fileCount":29,"integrity":"sha512-vtokIkkh5PvlrNjFKaTqnrY49zILM2/7njanE20YhDpM+QS8Pb/UCWcvCRlE+1SnTjoOKlfe+qvpJdNRWDvcBw==","signatures":[{"sig":"MEUCIQDWn9ynRZuRyvA1hjX/LK9B5S5nnhfcI9wJYdw/OphYYAIgDEyYk0jqzZzQHQKvT7V4wSLsmVjnX4miqFiK7jpTdzc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":569997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/HcyCRA9TVsSAnZWagAAr4QP/RL2Gs+GBfm8lx2BNxWZ\ns9kKr/daUBQTlwyNbi6zns9H35Flmq2yoF50gM0JTh9AVUCm8uMqgMZ1CNFr\nICUEUCzOI+Pp9xIO86EJtrseYxGMEUPp9WO6E8dxoOgA3V2kAQMcdLwIUmnY\nUfuybCM45GhKNrQGLwltHCQpSKPOYV7S3J6//BtO7n8d/LS1QG6wN3pYZyvU\nECAaoiBeqjCuuXfOEHKCeztpmpvOVp7yd23/cvY5XEa0XsExBJjtmQrJvAue\nd0Jdysbu9TcZFIuNWyqd0QgNckeO7AUTTSTC1x2HUl+uUB7BhpjkznXhFNMf\nA8e2xX/leeREczH8q8ktmH4tKPxPEpteTD/pERnuvad64Ps5sFa3m1IytCyC\nqTFc1HBCWoks8iCvkn9JWfbPU0I74MFfgduTfVMpqCQ7agqyGoGeJRAAe7gK\ntaOeTV0VF8ZCI+JGWE4ra4MuDJEnd0VmQ2M44yyNgVHhNSCdpjRheIN3yEY1\nM5Lf7pDgpnIXJwPrEYJkrx2rYLp9/up5BR5xOiJVA9JTyJ2849f4avDruKvo\nunIeX9fvLvuj9NIkYNzAuY7cHQFv1GXW9HvtVlkY/CHQ01YQCZoTEnidOefu\nikbOVZwnPZ231wkABRKqyFgBjw16hRuql5KoB5nN8ohWKcH8++4X/vytsyM4\n20Wy\r\n=+v/H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"ce759ed794ebc73baf8460915710ae7b55af52ae","gypfile":true,"scripts":{"test":"npm run test:esm","build":"node scripts/build.cjs","clean":"node-gyp clean","setup":"npm i && git submodule update --init","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/unit.test.mjs","build-alt":"node scripts/get-node.cjs && node scripts/build.cjs --alt","configure":"node-gyp configure","postinstall":"echo \"should be built already\"","configure-alt":"node-gyp configure --nodedir ./deps/alt-node","configure-napi":"node-gyp configure","test:performance":"mocha ./test/performance.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"deprecated":"not","repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","download":"^8.0.0","node-gyp":"^7.1.2","@octokit/rest":"^18.7.1","node-stream-zip":"^1.13.6"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.1.0-rc.3_1627158321914_0.46799596435823876","host":"s3://npm-registry-packages"}},"2.1.0-rc.4":{"name":"cfg-reader","version":"2.1.0-rc.4","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.1.0-rc.4","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"94a6d4a1c4a52e305c47d2c8d5ea2b0588edb90e","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.1.0-rc.4.tgz","fileCount":29,"integrity":"sha512-STuKgwnwzTXMMxR/xMsMXtZsNUt/rmJEB43K8wGKdIyMf5PW0whe1AoJQqV4H6vT3qSalw8eR3N4HsIFFl47jw==","signatures":[{"sig":"MEUCIQDUFa2CHUZB1gfDN3ax6wAmoGg86ZwvgYmiwYHCE47NLQIgGlDz5icSDF98PjxhRZtUlkb9LjfN7ShgBBxIovffPBc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":569978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/HwDCRA9TVsSAnZWagAApqEP/0TezFbmWjoWofKyhg1k\noUB8mZ0U6exuHA/ioKmTiepBT4kQcQ8P5apF4evEfHXTmPc1OXTr5JNo6XL9\ndCNWTmHvsFSn5LZKrKtcJAyXoGaValUJP1KgCjBhBuweHnI1re7s4gc/a2jS\nTLoyDlo5LTMra4oKTMTh2NtoVFBXL229jqrjHi83wtr7tl0zcSaHROzuwmwP\ne3vFZLteN6+TwQQ0Z0Hye2dNkq9t9WfYdXoIhQrlzLzoVKIbvdfCYCY4OoM6\nCxgjTB8TROZqvGOYOjKn+aBOUY+GohNNzmAPQSBIocDMq6KyW7eq4bXnc2s2\nRx7AlN7M69JmSb/8oj9/rdMJIg45vLZIF11VmJib2iUpT077YtPgMUwTLHQi\nL1rf+1rt+2PXunoNttSSYiEK1Em2usTlXUBNz8HacrAd9KpSAhsoQWE/0m6q\nQ97fxr6CtGKBJDTd1BI0FI8y0MgJZxmqqQwU894c15xJjqfaSkuQ5psI3zSO\n2hlZPrFr9DC+gU4FoKfwghyYS4Ir5xWMn0FGcocMenCX4tIyKGWVH44VxXJX\niVQcsk23yaP4lulwD/9DOUBfgU+AF0gJUP+pJxorR+/6swtncaHENlnF13o2\nKBns4VxY9WAIdu8YPfz02kbgTSSjKmtpkvaTPoyO2BYLkneUNwKpN5WFi7hC\nm5eB\r\n=BzEe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"347ef2121086affce237180ff8a3160971ca0506","gypfile":true,"scripts":{"test":"npm run test:esm","build":"node scripts/build.cjs","clean":"node-gyp clean","setup":"npm i && git submodule update --init","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/unit.test.mjs","build-alt":"node scripts/get-node.cjs && node scripts/build.cjs --alt","configure":"node-gyp configure","postinstall":"npm run build","configure-alt":"node-gyp configure --nodedir ./deps/alt-node","configure-napi":"node-gyp configure","test:performance":"mocha ./test/performance.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"deprecated":"alt-node","repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","download":"^8.0.0","node-gyp":"^7.1.2","@octokit/rest":"^18.7.1","node-stream-zip":"^1.13.6"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.1.0-rc.4_1627159555613_0.43536231872866593","host":"s3://npm-registry-packages"}},"2.1.0-rc.5":{"name":"cfg-reader","version":"2.1.0-rc.5","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.1.0-rc.5","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"fffde2b7ab9b49356aee0bf3ea34d3e3181cc352","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.1.0-rc.5.tgz","fileCount":29,"integrity":"sha512-XoSP0CQ/JcJbfU6b0hJs++YWCZ/Yf/l4R97CyflkxZKbS50CGyg0EDlZDToa/amjecoojkwLf7T9I+S1HoK8Nw==","signatures":[{"sig":"MEQCIHe9vo9w5MMzAt1u2UACN9HXBnrGteAC/QU7RvW8aSLTAiBloDvjGp7+vvjq3rdFgQMcy2s9gWULdq9ZsBXwdwEDtg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":570135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/H99CRA9TVsSAnZWagAAvUkP/ReFtXK0vO+7l4XANWFW\nxZFscnpDFXDbWf+MigKPEK440bAPITlPQAek+DG6FQo9rxr6nNCCNrdxEC/w\nPDV8SGq5gHxpMLlYCWgntfLa/7AwzzXTSbrgzLAfa99vGpoXiPuDtauXd7J/\nkti/YyU+P6U3iDl/pRjAQPqdM00eCmcx96wa5jBr+B5zpSmU4+l/k5a8EyCK\n59xN3ZhpG2BYJ+STHi672vKywLD+NtCfLCd5AE9h0qp4ndsZaWpXnm4eA8OI\nCr1AtNFd/tYXKmzxFgEDK1RBlfLnkh5fm3sGQjd7eSJ7lpkVRruZUvgm9ouk\nAiT7xWcvFCiU/jWs/hGU6SXcz+EpVzmTEIuc7RKTArwQ7AZQ9dsx4LoHb2b0\nY6gS8f9+4Gw6TYmoAex+pp6wrLb7kmnCXkPPKd9QFJu/4y3y553gH1NQMu+y\n3rRkkcvF9FNMVxBhF2PdVxgnrzu6AqpIAkidntvfv0O6qhoYYj29Wd+lK1TD\nVn1eHF26qI7RY5bE8HjOrsuzvQExPzaj2Q82yKqS76doKd6VXGc1ubtOWSAJ\ndy6VqauVPoA3HRxf+foPga2TiBhCk3Nz9cAzjCwHSnrvRcYyy2r7/RYcbRzN\nUw6bojQSkftpgVpyammX7GWflxutAH3IvRy+4aamtHicLH2zRALKjQPCXa7o\n+fSm\r\n=RthN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n[![Latest Build](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to install to correct version for it to work.  \r\n- @next for node version >= 12\r\n- @alt for alt:V node module  \r\n  You can find the special implementation for the alt:V node module at the alt-node branch.  \r\n+ If you want to use this module along the alt:V JS Module, follow the corresponding installation tutorial\r\n---\r\n## Installation\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n\r\n## Installation for alt:V\r\n\r\n```bash\r\nnpm i --save cfg-reader@alt\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out types/index.d.ts\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"9b117080bcb73f0c30e74857d2f4dc87edefd694","gypfile":true,"scripts":{"test":"npm run test:esm","build":"node scripts/build.cjs","clean":"node-gyp clean","setup":"npm i && git submodule update --init","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/unit.test.mjs","build-alt":"node scripts/get-node.cjs && node scripts/build.cjs --alt","configure":"node-gyp configure","postinstall":"npm run build","configure-alt":"node-gyp configure --nodedir ./deps/alt-node","configure-napi":"node-gyp configure","test:performance":"mocha ./test/performance.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.3.0","download":"^8.0.0","node-gyp":"^7.1.2","@octokit/rest":"^18.7.1","node-stream-zip":"^1.13.6"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.1.0-rc.5_1627160445476_0.700054792985134","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.1.0":{"name":"cfg-reader","version":"2.1.0","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.1.0","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"bc232e6dcfb06f1fc2cd8eb23f64f8b8c9e3b96e","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.1.0.tgz","fileCount":30,"integrity":"sha512-bMk3vEr1ItUo44r3SZSVtPD8jhoIfy+hGOZtCMWU92jIZbUM+mir5t4NWlEsIZAiUnxbL40ZRVaa6ychmkYlKQ==","signatures":[{"sig":"MEUCIC8WSRrB8LjdU1t038i6ppndCcI5CXGdBnGT4tEjQET+AiEAkBuDW8dF7OQ9gVyr6PizZjRAbXYVqYmtV95zPeytXTI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":570855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/I8+CRA9TVsSAnZWagAAeuQP/07+TWV9EU1BSnrzs3Aa\n64KqSGXfcR0cLzpLhv9tZaFsjKRt5eTjvq4TjplwUbD9UH9FUfPpNAMKvU5W\nldjftWkz4KUDyl5mPRjP1JGu/cT6nk4EpRBoSKaDlZxwd7ieiScwQWSD+Ol6\n8j/Rkxn6tdvf0r0KMunhYGfc4yDu/oPNWegHfxTfkRO+WBNTu0bIVyGTc1QH\nTXoXK+x8jpIXXAnaHIVwLDrn/uybPI60LJr7+2PwgOgENYjDnVLSABBjtt8o\nS84dbXde6yzDnPC7ZZcWNnvjp6vUCpEXJF6BlPSv37Qa4PYqFeniReRK5uis\nV2IVJ0JKXHekDedMSIwJ9DVd2L1brQqfJD1GJ9CyRBfp+l8eVHvyCxMvqaxY\nnnNYu8sgByraLug9aqhIcT0AIqOoxeZgPaDOs0zlkN00vhSXEHdJGaGzKGBW\n/cOWmY2g3CGEOaOGoi+sbE1XO2m0kRB1P6n4WI2nw86Lxgp+Wy5Mq4r7XO1H\nK4POE5rlW+yh1Uw3fexcSaG9QKbRMGbgJaD5COIKfYvrhcicqHUPVEDsyrD2\nS7I+eZbhWCRxKHpOygZ5OBLWPIuGGRFxFxLoVfezixuQsMOaL18XoMF+MS9K\nbnwu5L47wOYo60qsoyFv0qLsjRW5b1ijx55jcRO/Hg79HPJ+tspsoSi2c3/p\nl9wb\r\n=w7Fl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"711d12d6fb4579a1ce83b340eaa7dac6a36c7d0d","gypfile":true,"scripts":{"test":"npm run test:esm","build":"node scripts/build.cjs","clean":"node-gyp clean","setup":"npm i && git submodule update --init","test:cjs":"mocha ./test/index.test.cjs","test:esm":"mocha ./test/unit.test.mjs","build-alt":"node scripts/get-node.cjs && node scripts/build.cjs --alt","configure":"node-gyp configure","postinstall":"npm run build","configure-alt":"node-gyp configure --nodedir ./deps/alt-node","configure-napi":"node-gyp configure","test:performance":"mocha ./test/performance.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.13","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.3","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.3.0","download":"^8.0.0","node-gyp":"^7.1.2","@octokit/rest":"^18.7.1","node-stream-zip":"^1.13.6"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.1.0_1627164478696_0.010739681930075351","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.2.1":{"name":"cfg-reader","version":"2.2.1","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.2.1","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"7e82bcf9651a733c74ca7553dda97474e41efa60","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.2.1.tgz","fileCount":32,"integrity":"sha512-OgbJhyCl28IG0ZauG58EyzHiYc/Fu5oX4fWg2o08dzN3CQ8vC4YaDNeuTJLWoOSidh9RIzupyODGkZQ+B0bx1Q==","signatures":[{"sig":"MEYCIQD2o+mwtpecvPh56CbpRlJn8ktPtPhe+s7trOc+cmyAkgIhALHZXgsHCYz5eV4fhB+HgPRcLeIQmoplpZJs5Zgqi6Ni","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":572246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEoRhCRA9TVsSAnZWagAAH0IP/2bQOLmq2bPjfB7gu7t8\nHJiSkzmjiWhEVn2DeGwBHoU2M6kbbpIVXK7JeLNAbAD6FnaiAnH/B0ND1UJu\ng5w8vZWIs9hkEF/pzyCVchwQ/VlgWfRpothL7Q6Rbc/5P8yt8A72YUi49siI\n+9Yztjt+Q6LHFRYF8PQhmATkkgxdyJmwkvk1tk3EAkzBUZu7ICVT21384Bvx\n/xrqiwQMpHeeof7K9erawQ7/xIeT4sWMkD+DEVs1IprXJMINm/mj8amMgjJz\n8RnUzEVSiNbci2mNclU7NStn0h9Wb1oI9WTHwnLk7IBre/Ntn7TdpB/gHodd\nJcM0Ik5JTZCihDV2oRAY4fyuUbHwIhie1l8iCk+0oxZoJ6xS1WZpCxPCpUEz\nvwD9ItYKCA3XwpRVJVF+9SPJvuZXW7WEYQpJQYTDbythNFvYeVN5uzx1MGKk\nyaf7upgQYghZCYpPLJC+EoZj6QLkEWWZiUNOMUpRfUYAtVlXgb7yPx9yKle/\nbSR4i1SmQouysabr+u9ETyK63dwAIQSTTkVHqjjh2K35696R6dAJ4OSAxHVY\nWFP3PWFHK93m4uPOKCowWYuP8X+i7jIH3dUQfTByBOxiw5ouwneHgtqbMMa4\nR6ndXo45A98+rFWzXQJy7OO4NmONh9vOedfwwR6vjyJ/8d7gwW1B33356OBy\neCst\r\n=P8lC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"d53edb18af1dbd4f7f0c3f302b6314d96b605ca8","gypfile":true,"scripts":{"test":"gulp test","build":"gulp build","clean":"gulp clean && node-gyp clean","setup":"npm i && git submodule update --init","test:cjs":"mocha ./test/index.test.cjs","test:esm":"gulp test","build-alt":"gulp buildAlt","configure":"node-gyp configure","postinstall":"npm run build","configure-alt":"node-gyp configure --nodedir ./deps/alt-node","configure-napi":"node-gyp configure","test:performance":"gulp testPerformance"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"deprecated":"deps installation failing","repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.14","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.4","dependencies":{"fs":"0.0.1-security","bindings":"^1.5.0","node-addon-api":"^3.1.0"},"_hasShrinkwrap":false,"devDependencies":{"gulp":"^4.0.2","mocha":"^8.3.0","download":"^8.0.0","node-gyp":"^8.1.0","gulp-mocha":"^8.0.0","@octokit/rest":"^18.7.1","node-stream-zip":"^1.13.6"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.2.1_1628603489443_0.9887326284934592","host":"s3://npm-registry-packages"}},"2.2.2-rc.0":{"name":"cfg-reader","version":"2.2.2-rc.0","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.2.2-rc.0","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"380a306ef09cc431b942d040f6a32a19794027da","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.2.2-rc.0.tgz","fileCount":33,"integrity":"sha512-SedxKjSkD/yu53yxe9yUjKGj6mLN+67XquPIHixMhY2Yce9aItXA/67x5xLSt3O8hkq8lBcLUIy5Y7sUFdCtKw==","signatures":[{"sig":"MEUCIQDvsaAMqucLVDDWHV23F8rXg3GU2byXb3DjG4ueffiKvwIgTouRTKDcSTTzo07uvn0T57efBisjUx/gE6BHdNZkBKQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":573130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE5T1CRA9TVsSAnZWagAAiD0P/1hNKEyAMZJBTYC34p6U\nYDRDni7gDMeaUTO3sgIslgG16nBbRx+3qkZNHCBzPH/sCyd+/EsRydPD4a5H\n/izzP//ZPdRZE4a7wIQ6KzKKFm0mtB5bUlYUnXwOtjj/HBJAlOtjzGAgQA7E\nE94psrV7clRC7Qusf0jx6qrdBUFQm89E3rqZDp95nGl0ULQOAn8mK65XJfHo\n3obI8U8mI0EeQIG9gGWPmHgK46djOjR+Un57DNU4tt9ze7nAC0g+Zixj/Sjg\nc/MrhUF9mjD7fmjyPoW/SRYj/ctzFyWbP3yfMrBPzh9/89UvfgzIq8PHAfv1\nkgng/A9ug01jcZmeCfy00OI9k++mLk+QNSrpUAtJETvIbgyJ+Zgbhtn/f5ox\nXy2E/z01uw1SHxYBNmox1TEUu99Lt6b6qDox0vZe7uGRwktI361Hhke4qQYD\ncplLodml9IYMZ1xF+EBzTGr0LxjmfBFvDxhzFOifpmIUc6T9SA1+WGYS4FWS\nmlowHJ52CZRGKnu5PinwV9Gp6ONVLfcr4tPoiQHRPJ7Zdh159Zt9r317wp9L\nUl3q1q1XfjqypiipsE2T3lpXzf8bFIAQU5LJQWYxYQM1Doa8gwQS6cOOM4SU\n5RzCT71FZXxs2h+igiPf9K4g0Dyh4xUhw4b6TANDKjd/2ASAxGb/iONSepnR\nqkRI\r\n=q6LO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n[![Latest Build](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to reinstall if you change your node version.  \r\n- supported node version >= 12\r\n- Since v2.1.0 you can use this module for the alt:V nodejs version and default nodejs version at the same time.\r\n---\r\n## Installation (works for alt:V too)\r\n\r\n```bash\r\nnpm i --save cfg-reader\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out [Typescript types](types/index.d.ts)\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"cbeb97fb424fd74e3cdb1266d6141404fdbf1446","gypfile":true,"scripts":{"test":"gulp test","build":"gulp build","clean":"gulp clean && node-gyp clean","setup":"npm i && git submodule update --init","test:cjs":"mocha ./test/index.test.cjs","test:esm":"gulp test","build-alt":"gulp buildAlt","configure":"node-gyp configure","postinstall":"npm run build","configure-alt":"node-gyp configure --nodedir ./deps/alt-node","configure-napi":"node-gyp configure","test:performance":"gulp testPerformance"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.14","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.4","dependencies":{"bindings":"^1.5.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"fs":"0.0.1-security","gulp":"^4.0.2","mocha":"^8.3.0","rimraf":"^3.0.2","download":"^8.0.0","node-gyp":"^8.1.0","gulp-mocha":"^8.0.0","@octokit/rest":"^18.7.1","node-addon-api":"^3.1.0","node-stream-zip":"^1.13.6"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.2.2-rc.0_1628673269054_0.9923049106689015","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.3.0-rc.3":{"name":"cfg-reader","version":"2.3.0-rc.3","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.3.0-rc.3","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"d674745fc5a5452158e34a642606d420121c5dec","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.3.0-rc.3.tgz","fileCount":35,"integrity":"sha512-eNO2UiqTTq6g3AyTIFPiUjo7OXgj4NQFAaI1RPA21lpbyz/GDHCRBFLKs92hdB9QGLvSK3SItI585fZtSchcuA==","signatures":[{"sig":"MEUCIHmd41FDSNlXRKJq2VqjNlIobWGXOEW83MAQ8FOAFK4AAiEAqxSpgYjadQGE75pOF74yDDAMBP40TH0k7Hc0XI2m6YA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":933008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE7DaCRA9TVsSAnZWagAACVoQAKPl5s0wgEIsgXg6Vhpe\nDaStYBabnvdbMvz5aegzZUOBqL6iCtgQ0Dgg+IzBfEpiMkHVv8BCNtZQ49iW\neYQYGkyqwiDWLOC0nE0Kpuw0e2bjjqJBI0DOvQ0tqla1I13H280HTq6SSZ06\nEo03aQJlpryXhUlMuWHQKVqzsvrlClC/6Fh7pInL8xSiMxOTk5ji9gZ0TF79\nseCw4gPw1cEsRXu2aK6zsaVbbz0mriIzqOoixwolIiN1ThxnUe0bCoE4XfeY\npvefiZb4pWQY8YsrF60uEEPeDFu3PIxMfQpgrXHx1UrMfjL3PcNQYK2Nx29P\n45mR40ZnlNpQTGj/2C2xP9V4Ycq1XJLxb7maUHmcfQNi12lb+b1Ug3Gi2rte\nXh0kdxDna4K34bwo9sw6qiRr8xNfRySpGAhY//Ac71ON7zwx8PysC20iptRq\nF+PEA3qxuiezkXi+3io4YuPIqNbQSuQClworZDbgjzTgH2C5EsYZMYer4VMm\nLSVWUbRrj8FsfQV/qWPbc93r0lZpOEiYKRILFBaprNoBUev/tbrGkChRvIV1\n/KMQrUlu6kUYc9OGAFXxVa0/7QorTo8sF629ls//M2Jrrn9ApqRFUHacBXxM\nweR5EaSkBNMz+Qv2ggzea+M14+K+HbHOVf4Gvu4bK7EsHummqVPRT20kkDNz\nQUU1\r\n=Mg1L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","binary":{"napi_versions":[3]},"module":"index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n[![Latest Build](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to reinstall if you change your node version.  \r\n- supported node version >= 12\r\n- Since v2.1.0 you can use this module for the alt:V nodejs version and default nodejs version at the same time.\r\n---\r\n## Installation (works for alt:V too)\r\n\r\n```bash\r\nnpm i --save cfg-reader\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out [Typescript types](types/index.d.ts)\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"014c41d080479279b4de84438a0626c6ae15b88b","gypfile":true,"scripts":{"test":"gulp test","build":"gulp build","clean":"gulp clean && node-gyp clean","setup":"npm i && git submodule update --init","test:cjs":"mocha ./test/index.test.cjs","test:esm":"gulp test","build-alt":"gulp buildAlt","configure":"node-gyp configure","postinstall":"echo \"Thanks for installing cfg-reader\"","configure-alt":"node-gyp configure --nodedir ./deps/alt-node","configure-napi":"node-gyp configure","test:performance":"gulp testPerformance"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.14","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.4","dependencies":{"bindings":"^1.5.0","prebuildify":"^4.2.0","node-addon-api":"^3.1.0","node-gyp-build":"^4.2.3"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"fs":"0.0.1-security","gulp":"^4.0.2","mocha":"^8.3.0","rimraf":"^3.0.2","download":"^8.0.0","node-gyp":"^8.1.0","gulp-mocha":"^8.0.0","@octokit/rest":"^18.7.1","node-stream-zip":"^1.13.6"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.3.0-rc.3_1628680410343_0.054746027953333165","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.3.0":{"name":"cfg-reader","version":"2.3.0","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@2.3.0","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"b773950c0e18fec1dc39f2ab4490186b93ac74a6","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-2.3.0.tgz","fileCount":35,"integrity":"sha512-YN1EQUxjyhmUU3pi0GQ3/O9QxRChvM7iQv2T9LAm8lGCJZFv/2HmfgPd4M1j2HRKJBb/Mv0tFbSqVRE/T8pMRQ==","signatures":[{"sig":"MEUCIQDmPOoq3uxeVNkiQRih1qeHz4ajoElQCF7jsKI5P35YPwIgIn60H8I0XPuCZjF5pRxjRCeW7kJA80D04IL2suFKVo8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":933105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE7fxCRA9TVsSAnZWagAAfxsQAKJly+jAfOBWYeFD63Q/\nsSHll0/mmvLNMt2fydfiVjmhFMZn4iCh/asZcr9JNnV6mYJD95J3v2SRP2gf\n7a/pEiB+g0+F/FAUw7h9YGwLiNS4SPXuYuwhHK0IIMB06d8wCtOpxWApBVAM\n2s451nT0aExlBRowHPAZC/Qh1uyT6Xo50THW9ftZnahBBw0j43IGgn1O12fB\nEO4Beekl05U0ETck5DnxpjPCzL9Rf+XCVrVQtSb0ROfcsQNtp52C2eJ35/Vj\n59fmX3ZdtPM8nGf7hleeMs6MMpkb0iqjkt4jVARRx+P+zqcYxFOUPaTyU1mM\nz7pEQ93GSPJ8/Jk39oaXseRWtq3yOlQ6rx5n5Ozc0evUoowE0azSiFayWwEi\neenVERMiMVxosvSiTLftOIYOFdSbJxHsXxOFrtre2xX/rIc9FFtqIBVGtT55\nf6wa3bY8gwt2l5q12iuvmPzEmQmqHU2EK+gnPcfumXXkp0hIgV5OJAkrQHP/\nH+KHMeX81cv5wDQmJ+gDdJflIY9JvBjMWD10eLXLEzlRBcB6KAUv8vIZJStb\nmmRWUFAX9EcnLx5UjgSVfWdOmQUY5pEAiN23eZFO8I5m7UHlKH7xA9Uxfren\nIpVs3vKJBsqnRbPhVro1a/ntBhK5qPD8QlH+IG/YdS2DZl6bkZzG5q0xAWnV\nUjJk\r\n=VR9p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.cjs","types":"./types/index.d.ts","binary":{"napi_versions":[3]},"module":"index.mjs","engines":{"node":">= 12"},"exports":{".":{"import":"./index.mjs","default":"./index.mjs","require":"./index.cjs"}},"gitHead":"71d2efe2e3e969544874019709b7e997363e920a","gypfile":true,"scripts":{"test":"gulp test","build":"gulp build","clean":"gulp clean && node-gyp clean","setup":"npm i && git submodule update --init","test:cjs":"mocha ./test/index.test.cjs","test:esm":"gulp test","build-alt":"gulp buildAlt","configure":"node-gyp configure","postinstall":"echo \"Thanks for installing cfg-reader\"","configure-alt":"node-gyp configure --nodedir ./deps/alt-node","configure-napi":"node-gyp configure","test:performance":"gulp testPerformance"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.14","description":"A .cfg file reader","directories":{},"_nodeVersion":"14.17.4","dependencies":{"bindings":"^1.5.0","prebuildify":"^4.2.0","node-addon-api":"^3.1.0","node-gyp-build":"^4.2.3"},"_hasShrinkwrap":false,"devDependencies":{"fs":"0.0.1-security","gulp":"^4.0.2","mocha":"^8.3.0","rimraf":"^3.0.2","download":"^8.0.0","node-gyp":"^8.1.0","gulp-mocha":"^8.0.0","@octokit/rest":"^18.7.1","node-stream-zip":"^1.13.6"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_2.3.0_1628682225250_0.09355430246145069","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"3.0.0-rc5":{"name":"cfg-reader","version":"3.0.0-rc5","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@3.0.0-rc5","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"c69f08369ad7d18fbfcedfa69e52db335152b264","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-3.0.0-rc5.tgz","fileCount":12,"integrity":"sha512-HkjF5iPawKpdaZgWReHIjgDvDj9xRtdDzkPFgqbaDSe+h9p9vLFcQBX7H402aLlTeFhexWImQi57buxM8IAmHw==","signatures":[{"sig":"MEQCIGLvpaJ52MMawJRBJ9GLR8SCl8uWa7Usa7K7NJk5reTNAiBETKPxpYvkAueJ2YjBi1ETReLLbV020XntxM0/1kxouw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64778},"main":"dist/index.cjs","types":"./types/index.d.ts","module":"dist/index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n[![Latest Build](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\nKeep in mind this module is a native addon and its important to reinstall if you change your node version.  \r\n- supported node version >= 12\r\n- Since v2.1.0 you can use this module for the alt:V nodejs version and default nodejs version at the same time.\r\n---\r\n## Installation (works for alt:V too)\r\n\r\n```bash\r\nnpm i --save cfg-reader\r\n```\r\n---\r\n## Differences between v1\r\n\r\nThe cfg-reader is now using the open source alt-config parser from the altMP Team.  \r\nIt should be way faster than my own parser in v1.\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```js\r\nconst { Config, Type } = require(\"cfg-reader\");\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\ntestCfg.getOfType(\"test\", Type.String);\r\n```\r\n\r\n## API\r\nCheck out [Typescript types](types/index.d.ts)\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"b114813ecdd2b7611b0b9cc80cfaa42421971afa","gypfile":true,"scripts":{"test":"mocha","build":"rollup -c","test:dict":"mocha ./test/dict.test.mjs","test:list":"mocha ./test/list.test.mjs","test:scalar":"mocha ./test/scalar.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.15","description":"alt-config (alt:V configuration) file parser","directories":{},"_nodeVersion":"14.17.6","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"fs":"0.0.1-security","mocha":"^8.3.0","tslib":"^2.3.1","rollup":"^2.58.0","typescript":"^4.4.3","@types/node":"^16.10.2","@rollup/plugin-typescript":"^8.2.5"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_3.0.0-rc5_1633459288265_0.44853878150620674","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"3.0.0-rc6":{"name":"cfg-reader","version":"3.0.0-rc6","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@3.0.0-rc6","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"8b042b5a93e069d0b163d2a526079adab030dc4c","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-3.0.0-rc6.tgz","fileCount":12,"integrity":"sha512-M/yLFUfGDBLDH69ICTmn8LQLMXMVg03rc0krYpTwk0kl60FmnFv1ksmGHuMossn583Z+FAvK8x+BGXQZ+dCTQQ==","signatures":[{"sig":"MEYCIQDqnUhh+ISsNEGxTYwuBPXQHQRBh+Koy3zuuMCwcVEdowIhANnL+J17FtBsHcRke69nWht7e0yeUdC1n7aBw8wQVqII","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67721},"main":"dist/index.cjs","types":"./types/index.d.ts","module":"dist/index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n[![Latest Build](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\n- supported node version >= 12\r\n- Since v2.1.0 you can use this module for the alt:V nodejs version and default nodejs version at the same time.\r\n---\r\n## Installation (works for alt:V too)\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n---\r\n## Differences between v2\r\nThe cfg-reader is now a full typescript port of the open source alt-config parser from the altMP Team.  \r\n\r\n## Breaking changes\r\n- Config::save() returns Promise<void>\r\n- Config::getOfType() uses generics and only accepts key as argument\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```ts\r\nimport { Config, Type } = from \"cfg-reader\";\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\nconst myString = testCfg.getOfType<string>(\"test\");\r\n// typeof myString === \"string\";\r\n```\r\n\r\n## API\r\nCheck out [Typescript types](types/index.d.ts)\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n// or\r\nconst con = mysql.createConnection(config.config.mysql);\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"65375a8cf0a7412cfc5f611ed885957c00a819c7","gypfile":true,"scripts":{"test":"mocha","build":"rollup -c","test:dict":"mocha ./test/dict.test.mjs","test:list":"mocha ./test/list.test.mjs","test:scalar":"mocha ./test/scalar.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.15","description":"alt-config (alt:V configuration) file parser","directories":{},"_nodeVersion":"14.17.6","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"fs":"0.0.1-security","mocha":"^8.3.0","tslib":"^2.3.1","rollup":"^2.58.0","typescript":"^4.4.3","@types/node":"^16.10.2","rollup-plugin-dts":"^4.0.0","rollup-plugin-typescript2":"^0.30.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_3.0.0-rc6_1633468849086_0.34658599400659185","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"3.0.0-rc7":{"name":"cfg-reader","version":"3.0.0-rc7","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@3.0.0-rc7","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"49152c29bbe80f6c90d0e9aaae752b45ecab3da1","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-3.0.0-rc7.tgz","fileCount":12,"integrity":"sha512-gFNcIr6X2+ihzWqPTaMOvSRvgWEVJYnENKljHW6O+Go5foGa7JVLoZ5N3lioqMLIVqsY2YtoQwphWruiptO6bw==","signatures":[{"sig":"MEUCIQCtQDK/yHRqTBcbe/Q0G2HFIymZILPDS0yGcUPTA3lt7QIgd/AkhqJj1kouih3VWrDbI0TXSUCRRWlwHTbnnOQ29vU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67648},"main":"dist/index.cjs","types":"./types/index.d.ts","module":"dist/index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n[![Latest Build](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\n- supported node version >= 12\r\n- Since v2.1.0 you can use this module for the alt:V nodejs version and default nodejs version at the same time.\r\n---\r\n## Installation (works for alt:V too)\r\n\r\n```bash\r\nnpm i --save cfg-reader@next\r\n```\r\n---\r\n## Differences between v2\r\nThe cfg-reader is now a full typescript port of the open source alt-config parser from the altMP Team.  \r\n\r\n## Breaking changes\r\n- Config::save() returns Promise<void>\r\n- Config::getOfType() uses generics and only accepts key as argument\r\n\r\n## How to use\r\n\r\n```js\r\nconst { Config } = require(\"cfg-reader\");\r\nconst myCfg = new Config(\"config.cfg\");\r\nconst val = myCfg.get(\"test\");\r\n//with the get method you can easiely filter the lines you need\r\n```\r\n\r\n```ts\r\nimport { Config, Type } = from \"cfg-reader\";\r\nconst testCfg = new Config(\"test.cfg\");\r\n// If you know which type the value you want to get has you can use\r\n// getOfType(key: string, type: number).\r\n// It directly converts the value to the specific type\r\n// and does not have to iterate over all possible types.\r\n// -> little faster\r\nconst myString = testCfg.getOfType<string>(\"test\");\r\n// typeof myString === \"string\";\r\n```\r\n\r\n## API\r\nCheck out [Typescript types](types/index.d.ts)\r\n\r\n## Example\r\n\r\nconfig.cfg\r\n\r\n```cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\nindex.js\r\n\r\n```js\r\nconst mysql = require('mysql2');\r\nconst config = new require('cfg-reader').Config('config.cfg');\r\n// equal to es6\r\n// import { Config } from 'cfg-reader';\r\n// const config = new Config('config.cfg');\r\nconst con = mysql.createConnection(config.get('mysql'));\r\n// or\r\nconst con = mysql.createConnection(config.config.mysql);\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"f0174511cd64eaa5278cce4b6181ffac9a9478e8","gypfile":true,"scripts":{"test":"mocha","build":"rollup -c","test:dict":"mocha ./test/dict.test.mjs","test:list":"mocha ./test/list.test.mjs","test:scalar":"mocha ./test/scalar.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.15","description":"alt-config (alt:V configuration) file parser","directories":{},"_nodeVersion":"14.18.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"fs":"0.0.1-security","mocha":"^8.3.0","tslib":"^2.3.1","rollup":"^2.58.0","typescript":"^4.4.3","@types/node":"^16.10.2","rollup-plugin-dts":"^4.0.0","rollup-plugin-typescript2":"^0.30.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_3.0.0-rc7_1633536392482_0.43500052771582176","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"3.0.0":{"name":"cfg-reader","version":"3.0.0","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@3.0.0","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"09981778f1e7cefa82f1f2ebb5f92cfc258682ab","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-3.0.0.tgz","fileCount":12,"integrity":"sha512-OO+QIjzhN17h4NXMWVqTDc875BLih0YUNtBFEEWqfqZZj3nzjpdEeYhq2Pp29gNPyWbKydqynoPDBPChUd6w3Q==","signatures":[{"sig":"MEUCIQCmuFNVqVYYVaoD07PN8uawbSh+5lA0ksOVzoYtCYIkIQIgCXuxWDKApskTEv5lwJPvcD1oDgE+OwyDFJ5zqF90RTk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68387},"main":"dist/index.cjs","types":"./types/index.d.ts","module":"dist/index.mjs","engines":{"node":">= 12"},"exports":{".":{"import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"5e25aed598cb06b4739b413aab43f50100d9d3b2","scripts":{"test":"mocha","build":"rollup -c","test:dict":"mocha ./test/dict.test.mjs","test:list":"mocha ./test/list.test.mjs","test:scalar":"mocha ./test/scalar.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.15","description":"alt-config (alt:V configuration) file parser","directories":{},"_nodeVersion":"14.18.0","_hasShrinkwrap":false,"devDependencies":{"fs":"0.0.1-security","mocha":"^8.3.0","tslib":"^2.3.1","rollup":"^2.58.0","typescript":"^4.4.3","@types/node":"^16.10.2","rollup-plugin-dts":"^4.0.0","rollup-plugin-typescript2":"^0.30.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_3.0.0_1634482037754_0.5254925550508882","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"3.0.1":{"name":"cfg-reader","version":"3.0.1","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@3.0.1","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"c15ab93f48fbac5711642bbc79ae47e80dbae156","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-3.0.1.tgz","fileCount":12,"integrity":"sha512-zvPaZbr7vVl7rkFtw+uhu+bxu1bMk4ejdND1PaZIieRB9mFswzSbp+0AWjAAV+9B4meptSRl8YeqCihqSUbQPQ==","signatures":[{"sig":"MEYCIQDpNrHF3T6IhLf4Py1aqn7B+4zmfw4RKxskpkLCAZO5qgIhAPEX4/6snofHPeI/pOiGBmiG3xV1SNItC+pTG2/f4Zxa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68438,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2lsrCRA9TVsSAnZWagAAuegP/AxiLULJ8QpASpPZeIHW\nGWAufCVEgJs4rJZjfYySCpWQ550Kry6h4etNZv13k2lH5f1YTXTDfR2c4xT1\n8mzpDIpTMOEMF8+Zlr210HLgJp2k0hWHBMdgHcX6wfAe+Axbvn54jtqCIjFt\nqulNM3Sf4zciRkbAV0InFONnho+QH344aVlg7UpC2nTcDuf6cZjh4/ZeAVr9\nP8rtz3aJANwLkZYEPrLW3YC1/m81El4GtnDQPkG3CKILhR7XDjpjAtPNLGeA\n7TQTizyLvyc0V+exA0kA/cBDoc7BvdSXqkuH7wHPCCsm7E+icvRFIlQIhITt\nL/RxVyVMPVeqzkFjKXuyZ1Q1hw/9vF+FR934ApTuA6NILiXfu6jjrf3/wxmg\nUsLxu6oTcblWGfBZSWI4L8vvrI5oQEJKdgb00TulTq59wDNOiS8hEUjPWXhw\n0AOTLCi2z9pWpGaK8QDQouRoIiUrfObTQ1Dt/cmIZsu2rIx2X12lqA7HZ9Ws\nmMD1CcHeySJbU+HXoDARa5T3vrR+mKWjW+BacxfMCzvSxQ4FbLCit3LRgD9/\nQ0ca2X3J226KGZkgHkQ4tdATBzcxqhg5mQ4IR21Peb9rIVyfpgsEZP2JBZhq\n3t3ahBGSdfDcTSjrkus83/WQro8PXJFlBhMzMtrpL9hbu5ufzVidL+ZeoAIx\nVyQZ\r\n=KxWO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs","types":"./types/index.d.ts","module":"dist/index.mjs","engines":{"node":">= 12"},"exports":{".":{"import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"dc9f356485557f5aeca8cad34218943ae903374b","scripts":{"test":"mocha","build":"rollup -c","test:dict":"mocha ./test/dict.test.mjs","test:list":"mocha ./test/list.test.mjs","test:scalar":"mocha ./test/scalar.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.15","description":"alt-config (alt:V configuration) file parser","directories":{},"_nodeVersion":"14.18.1","_hasShrinkwrap":false,"devDependencies":{"fs":"0.0.1-security","mocha":"^8.3.0","tslib":"^2.3.1","rollup":"^2.58.0","typescript":"^4.4.3","@types/node":"^16.10.2","rollup-plugin-dts":"^4.0.0","rollup-plugin-typescript2":"^0.30.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_3.0.1_1635629946334_0.24586542053154892","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"3.0.2":{"name":"cfg-reader","version":"3.0.2","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@3.0.2","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"8f247b2b20e3483e02d852c9008e379dda23a756","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-3.0.2.tgz","fileCount":18,"integrity":"sha512-hFLIcZgJutTJkrFDUQK/SEV3rXDZ1YG95Wy4g6rKOToXEbPig1nuTzyMq6i8vguLXYk/XptEDYVXtcnVaUocHA==","signatures":[{"sig":"MEUCICrWlkzDEG2UH8MLFiEu47tzkJPFUx0J+81tftOS0v8RAiEAjxfW4Wh3Y2vnaMOoF4qlC/wYsMUuO9fZ3xj+gNMZuUs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVt5CACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1Lw/+PLvsLGp2uUgV8mXe8UaZnWbhr7NKuY8nxbgCLm8B3Z2JVova\r\njxHkJhjbGszv93LB4iIADUYwCmOB4lYyyLsrGNizJAx8lGCVe4GUykalaRAP\r\nE+NIpqAa9BPdPj2n94I5R46IENod3Nyo2ayndt3xyNcqtfiR0LCFrxDzQUiU\r\nM1H+e442PWGqoVlpFIZ2T2wq3tGsftsMZBzqAqrns1Ms8TfNP4C0EKjRmY4c\r\nxfN23FzcGd8aeqgBLVJtPDC0ieWpi+n3E4DU/ZE0oTcb+b9WyaCAndSZA/7v\r\npjqGD3/mPn2cuqKeP5yTsZ0YjrTvsPwNVTxU0YmrszUFWpmcwvH64GH1HCCk\r\nt5dnaadoMkV81wFMqqTeSqTEfcnsKJkHLnBCNEi9u4NQ1RWbnYIM6uRP2Ev7\r\n1fqXS8CBJsNuGQAEw+XQzKHAQaSoV78ZhZeE5UAp56FKCIA20CTKO+k/zG2S\r\ncyT7jLiOfEU6IMSCnrJOjw0oV1Mz4xGu9cJznoPkSrsYZB6Pxalezo3kNbvf\r\nY30r9qAHHxIIn7cJBK7m/2vk3Tkcgrc/piSBOddMWFypeatUe5WvHPbZRpx+\r\nGFqFvrWvqRZc2XA79sqRrtITjcgQz/0M9RgiMWxpdmMolXtSpUFnFhFc48Ym\r\nyCM5SkphysEb+andmpPFgchpb7MPaUHMUV4=\r\n=Sp5k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs","types":"./types/index.d.ts","module":"dist/index.mjs","engines":{"node":">= 12"},"exports":{".":{"import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"ada982f66da6fb9f397dacc5bd625965e7350661","scripts":{"test":"mocha","build":"rollup -c","types":"tsc --emitDeclarationOnly && rollup -c rollup.config-dts.js","test:dict":"mocha ./test/dict.test.mjs","test:list":"mocha ./test/list.test.mjs","test:scalar":"mocha ./test/scalar.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.16","description":"alt-config (alt:V configuration) file parser","directories":{},"_nodeVersion":"14.19.1","_hasShrinkwrap":false,"devDependencies":{"fs":"0.0.1-security","mocha":"^8.3.0","tslib":"^2.3.1","rollup":"^2.58.0","@swc/core":"^1.2.165","typescript":"^4.4.3","@types/node":"^16.11.26","unplugin-swc":"^1.3.0","rollup-plugin-dts":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_3.0.2_1649860162574_0.7425715998296529","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"3.0.3":{"name":"cfg-reader","version":"3.0.3","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@3.0.3","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"dist":{"shasum":"61d01bfee75cea57cfc695c7da84bf4e5c4e517e","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-3.0.3.tgz","fileCount":14,"integrity":"sha512-XbnzWJlB54nyYQVrPUOVFY9DEEReykYW4hH2yg+91D+QAKfvq3sAaf5Snhiq65oXzKI1l9P2HAseMkeTumhPvQ==","signatures":[{"sig":"MEYCIQC6tCyhmY8lXTj56/m8ZPeG64scD3XJG4n3qicVOmM8CQIhANqNgUi7Jn1K9TVkh6JCqF3KEPTzZ7ob3gOGGJGiEaqo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixvNbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrcCw/+LLEvNiPBEF5hMwEGT8UsX0gMxD4RnhdFzE+bwtZRuVwLg/0v\r\nZgs5fY4mYhxImqFj94+O1IriVSkK+gnI3ckSOcSB3lzQKr+JH+I7bsmGu4KZ\r\nEYkLY5fsQZebVEkitGfMVdol5YcENvlcegDmrE5j9DZnf/IwL5t0euExljJk\r\nKEK+Dcqwbmid0T1/smHgHCBZ7i55Uk3yPwYkyaPVKuR14ROCCFcCDTTV1J0X\r\ne5VB2+atMlj9E4PG53cytNkE5BzdYTGA+bSxe3OOukIf/WNnpp/qRGt91Ovg\r\n4qnJds6nEx/gVXc9w+KJAlBekbNECai6zNdjH+MyJcN6ZqYYWY3V0ToDj57g\r\nkrWnnEus/hcmv63yd4/YWjhA3KTbDZaxYZdY3xXv6tIJVbB1pzgxJL3FLwFy\r\nSspmnTFw20o9ioPsfcH+IUAl1sAYexBdiFFHu+uYLp8Ai6kHiiAb76Ton2MS\r\npeV5EJPgjf0dn0318uAPYM1XwChYi/weOWPT2VV5tyRAXpDvv2Uu6n2PvXCp\r\nrRw12T+5CjNm4LJ5bpFkUldUGOv5k6Xq9NyjH/64sPCfmNaVPkV2LNO5P0ZV\r\nfnVzCLoMIa6JN5kvLv3NflLrK18P2GsbMaXYaxGfVX+jN9PUX6SylJM3bTeH\r\n3jba7yIC+SUfvAKDGkcZODzrsWJb+206VY8=\r\n=ijEt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs","types":"./types/index.d.ts","module":"dist/index.mjs","engines":{"node":">= 12"},"exports":{".":{"import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"fc5fdcad401f7ec3fa22be43aec5532abb639856","scripts":{"test":"mocha","build":"rollup -c","types":"tsc --emitDeclarationOnly && rollup -c rollup.config-dts.js","test:dict":"mocha ./test/dict.test.mjs","test:list":"mocha ./test/list.test.mjs","test:scalar":"mocha ./test/scalar.test.mjs"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.17","description":"alt-config (alt:V configuration) file parser","directories":{},"_nodeVersion":"14.19.3","_hasShrinkwrap":false,"devDependencies":{"fs":"0.0.1-security","mocha":"^8.3.0","tslib":"^2.3.1","rollup":"^2.58.0","@swc/core":"^1.2.165","typescript":"^4.4.3","@types/node":"^16.11.26","unplugin-swc":"^1.3.0","rollup-plugin-dts":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_3.0.3_1657205594879_0.5851066595637211","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.0.0-rc.2":{"name":"cfg-reader","version":"4.0.0-rc.2","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"author":{"name":"Timo92_"},"license":"ISC","_id":"cfg-reader@4.0.0-rc.2","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"homepage":"https://github.com/Timo972/cfg-reader#readme","bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"ava":{"extensions":["ts"],"nodeArguments":["--loader=ts-node/esm"]},"dist":{"shasum":"b91f54ede53f43a37fbd8b3b4154a548ef41d6bb","tarball":"https://registry.npmjs.org/cfg-reader/-/cfg-reader-4.0.0-rc.2.tgz","fileCount":6,"integrity":"sha512-U+QBqZhmIYEEVX5jdWWMpb7n1Z1thjQiv9FZ1Q/3fydnJHxLl6z3lzm3Rw8yMmaoCfsTgsvAkiyJ9pW57muq5Q==","signatures":[{"sig":"MEYCIQDnyr7CnqNVzVIOcyb9bBXzm4nkOwjyAWmYW1CjCJ18fQIhAKWYsi9DYJUdf7SSe+7ixYddsybvSbAzbf5S+30LAISE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0WTsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPrQ/+I2D0tP0jKLRUPMp5Asu04kBhXubsWGy6voq6tWn3HcPdP8AU\r\nplGFi4SELVVg0HaMHrypLHHagdPDQ63U3SyV8PJUJmfcL3k27t90RHXBkqNR\r\nCXS/qW54569cb7dMvYWtNssISUqC4RaI3n3Z5oYbmBQA7dfSeOtSE0n1cL+U\r\nb9Q65yfpuPfMszRJaO32S+DfKZQf3AyrawXNU0XoOEvrfyvU7mRBoRkVZLoR\r\nZryUoD4s/qWOQUwWeMDaJpEEZEYUbbvbr3Ox2pvHTl/GlP5b5ucH01E2oIai\r\nJm4cIeGsbgTQizdxnDJG7bYVPAhEUJ7ne8ZybXvy/0L7E8JTAThXEJOhKqYP\r\nFl65Y0gxP/MCYpH0hcBiaA3pf+TvpMz+lZSdGYncD6NzT1esexttt9tUJIzs\r\nD8JflK4HDu9XwJKHzRoKRkriD9JcwSEjPFXCYkCiqKCNgWvI6Pp+EKviKNV/\r\nmF4fhi32v7f6gOozMJEpepCO0Tpd1abK/8Xxuq27yV7/AHV8xHk/PvrhV1Db\r\nUbLtfJ5ayh4GU/XA8Qedn0riq6+J3KSrkIe56xpxd9HWHV9MoPSCGD/Bmr5/\r\nZCx+fxf+y+EpSJX1+XVzbDs7LQ8ALwjcTABgTPnZywqt8HRVRjnjJclBPPQs\r\nerhcr2fsAuqoAK1KFW4jmNOhYnxnjUPfUEk=\r\n=5rXH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs","types":"./types/index.d.ts","module":"dist/index.mjs","readme":"﻿## cfg-reader\r\n\r\n[![NPM Version][npm-image]][npm-url]\r\n[![NPM Downloads][downloads-image]][downloads-url]\r\n[![Node.js Version][node-version-image]][node-version-url]\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aec7d7510bb34f138b70c304818945e4)](https://www.codacy.com/gh/Timo972/cfg-reader/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Timo972/cfg-reader&utm_campaign=Badge_Grade)\r\n[![Latest Build](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Timo972/cfg-reader/actions/workflows/npm-publish.yml)\r\n\r\n## License and copyright notice\r\n\r\n[alt-config (MIT)](https://github.com/altmp/alt-config)\r\n\r\n## Important\r\n- supported node version >= 12\r\n- Since v2.1.0 you can use this module for the alt:V nodejs version and default nodejs version at the same time.\r\n---\r\n## Installation (works for alt:V too)\r\n\r\n```bash\r\nnpm i --save cfg-reader@latest\r\n```\r\n---\r\n## Differences between v3\r\nThe cfg-reader is now a full typescript port of the open source alt-config parser from the altMP Team.  \r\n\r\n### Breaking changes\r\n- Removed Config class API\r\n\r\n## How to use\r\n```\r\n# config.cfg\r\nname: Test\r\nport: 7788\r\nplayers: 1 \r\n```\r\n\r\n```ts\r\n// config.ts\r\n// Typescript types\r\nimport type { List, Dict, ConfigValue } from \"cfg-reader\";\r\n// Functions\r\nimport { parse, serialize } from \"cfg-reader\";\r\n\r\nimport { promises: { readFile } } from 'fs';\r\n\r\nconst rawConfig = await readFile('config.cfg');\r\nconst config = parse(rawConfig);\r\n\r\nconsole.log(config.port); // prints: 7788\r\nconsole.log(config.players); // prints: 1\r\n```\r\n\r\n## API\r\nCheck out [Typescript types](types/index.d.ts)\r\n\r\n## Example\r\n```bash\r\n# config.cfg\r\nmysql: {\r\n    host: 127.0.0.1,\r\n    user: root,\r\n    password: test123,\r\n    database: db\r\n}\r\n```\r\n\r\n```js\r\n// index.js\r\nconst mysql = require('mysql2');\r\nconst { readFile } = require('fs').promises;\r\nconst CFG = require('cfg-reader');\r\n// equal to es6\r\n// import * as CFG from 'cfg-reader';\r\n\r\nconst rawConfig = await readFile('config.cfg');\r\nconst { mysql } = CFG.parse(rawConfig);\r\n\r\nconst conn = mysql.createConnection(mysql);\r\n...\r\n```\r\n\r\n[npm-image]: https://img.shields.io/npm/v/cfg-reader.svg\r\n[npm-url]: https://npmjs.org/package/cfg-reader\r\n[node-version-image]: http://img.shields.io/node/v/cfg-reader.svg\r\n[node-version-url]: http://nodejs.org/download/\r\n[downloads-image]: https://img.shields.io/npm/dm/cfg-reader.svg\r\n[downloads-url]: https://npmjs.org/package/cfg-reader\r\n","engines":{"node":">= 12"},"exports":{".":{"import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"54c1d18c253aa9c4d79233f2d8e680a896e6dccb","scripts":{"test":"ava","build":"rollup -c","types":"tsc --emitDeclarationOnly && rollup -c rollup.config-dts.js"},"_npmUser":{"name":"timo92","email":"beckmann.timo@icloud.com"},"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"_npmVersion":"6.14.17","description":"alt-config (alt:V configuration) file parser","directories":{},"_nodeVersion":"14.20.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ava":"^4.3.0","rollup":"^2.58.0","ts-node":"^10.8.2","@swc/core":"^1.2.165","typescript":"^4.4.3","@types/node":"^16.11.26","unplugin-swc":"^1.3.0","rollup-plugin-dts":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cfg-reader_4.0.0-rc.2_1657890028611_0.25053916899715056","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2020-03-17T13:51:12.365Z","modified":"2026-08-05T17:36:08.043Z","1.0.0":"2020-03-17T13:51:12.501Z","1.0.1":"2020-03-18T09:01:01.588Z","1.0.2":"2020-04-03T08:30:56.520Z","1.1.0":"2020-08-16T16:30:04.993Z","1.2.0":"2020-08-20T12:29:33.604Z","1.2.1":"2020-08-20T16:46:17.682Z","2.0.0-rc1":"2021-02-22T20:29:41.417Z","2.0.0-rc2":"2021-02-22T22:47:46.800Z","2.0.0-rc3":"2021-02-22T23:07:12.407Z","1.3.0":"2021-03-11T22:09:38.419Z","1.3.1":"2021-03-11T22:31:53.566Z","1.3.2":"2021-03-11T22:40:36.082Z","2.0.0-rc4":"2021-03-26T15:26:51.611Z","2.0.0-rc5":"2021-03-27T22:28:25.449Z","2.0.0-rc6":"2021-03-27T22:38:46.787Z","2.0.0-alt0":"2021-03-28T00:46:49.177Z","2.0.0-alt1":"2021-03-28T00:49:58.676Z","2.0.0-alt2":"2021-03-28T00:52:15.941Z","1.3.3":"2021-03-28T01:04:56.869Z","1.4.0":"2021-07-16T17:42:46.030Z","2.0.0-rc7":"2021-07-17T12:10:30.517Z","2.0.0-rc8":"2021-07-17T13:23:21.914Z","2.0.0-rc9":"2021-07-17T15:37:44.190Z","2.0.0-rc10":"2021-07-17T21:53:15.752Z","2.0.0-rc11":"2021-07-18T11:44:03.027Z","2.0.0-rc12":"2021-07-18T12:12:57.729Z","2.0.0-rc13":"2021-07-18T19:58:07.120Z","2.0.0-rc14":"2021-07-19T15:05:27.145Z","2.0.0-rc15":"2021-07-19T15:11:29.825Z","2.0.0":"2021-07-19T17:27:15.644Z","2.0.0-dev":"2021-07-24T20:15:52.478Z","2.1.0-rc.3":"2021-07-24T20:25:22.050Z","2.1.0-rc.4":"2021-07-24T20:45:55.799Z","2.1.0-rc.5":"2021-07-24T21:00:45.903Z","2.1.0":"2021-07-24T22:07:58.902Z","2.2.1":"2021-08-10T13:51:29.658Z","2.2.2-rc.0":"2021-08-11T09:14:29.277Z","2.3.0-rc.3":"2021-08-11T11:13:30.518Z","2.3.0":"2021-08-11T11:43:45.423Z","3.0.0-rc5":"2021-10-05T18:41:28.431Z","3.0.0-rc6":"2021-10-05T21:20:49.268Z","3.0.0-rc7":"2021-10-06T16:06:32.623Z","3.0.0":"2021-10-17T14:47:17.918Z","3.0.1":"2021-10-30T21:39:06.462Z","3.0.2":"2022-04-13T14:29:22.776Z","3.0.3":"2022-07-07T14:53:15.048Z","4.0.0-rc.2":"2022-07-15T13:00:28.760Z"},"bugs":{"url":"https://github.com/Timo972/cfg-reader/issues"},"author":{"name":"Timo92_"},"license":"ISC","homepage":"https://github.com/Timo972/cfg-reader#readme","keywords":["cfg","cfg-reader","config","alt-config","alt:V config","altV config","altMP config"],"repository":{"url":"git+https://github.com/Timo972/cfg-reader.git","type":"git"},"description":"alt-config (alt:V configuration) file parser","maintainers":[{"name":"timo92","email":"beckmann.timo@icloud.com"}],"readme":"","readmeFilename":""}