{"_id":"@carnesen/bitcoin-config","_rev":"10-15b92762b0a5c66c6238293150f47546","name":"@carnesen/bitcoin-config","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.0-0":{"name":"@carnesen/bitcoin-config","description":"Constants and utilities related to Bitcoin configuration","version":"0.0.0-0","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"build":"tsc","build:clean":"rimraf lib && npm run build","build:watch":"npm run build -- --watch","lint":"tslint --project .","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run test:unit && npm run build:clean","test:unit":"jest src","test:unit:coverage":"npm run test:unit -- --coverage","test:unit:watch":"npm run test:unit -- --watch","preversion":"npm test","postversion":"npm publish"},"dependencies":{},"devDependencies":{"@carnesen/tsconfig":"0.0.1","@carnesen/tslint-config":"0.0.3","@types/jest":"23.3.10","@types/node":"10.12.11","@types/temp-write":"3.3.0","@types/tempy":"0.2.0","jest":"23.6.0","rimraf":"2.6.2","temp-write":"3.4.0","tempy":"0.2.1","ts-jest":"23.10.5","ts-node":"7.0.1","tslint":"5.11.0","typescript":"3.2.1"},"license":"MIT","author":{"name":"Chris Arnesen","email":"chris.arnesen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/carnesen/bitcoin-config.git"},"bugs":{"url":"https://github.com/carnesen/bitcoin-config/issues"},"homepage":"https://github.com/carnesen/bitcoin-config#readme","gitHead":"03a1e388c3a528a7163018d0eeeb3069d89d4680","_id":"@carnesen/bitcoin-config@0.0.0-0","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"carnesen","email":"chris.arnesen@gmail.com"},"dist":{"integrity":"sha512-TTTIh3qXlMOUy25flV1BzyhUSEyHtSAFhfoaIzFiqJcZ6eeKgogvRcOBLkXozk0D0yUlQySVw8LJu0/CYbGtaA==","shasum":"8263a903e86255aae9d912a147021ab7c0c8f3ca","tarball":"https://registry.npmjs.org/@carnesen/bitcoin-config/-/bitcoin-config-0.0.0-0.tgz","fileCount":88,"unpackedSize":254603,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcKvDACRA9TVsSAnZWagAA+FIP+wZ2JPO/mT9mWYtZZ3Zw\nw1+nsY4rnFwjROTpL+5NyhEYOq+uCXNDOVwnLuF7RfP6afnMlR3VVleEifMK\nXppP2M7PSUV+zwXoVuUQ3oYmXZDezxFJ1LAcguYcU1iJfRKXQh8az5dljgDO\n3ZwjfYNrk5ZQL+GsyZROthtZKVXKN1Z4XkyAZKdfldSJckUnCzWfSbmu5v8U\nygf3JzUBQBkYS+JysnqV964JCfUn/SOBIoaklxrie748htWZKVvGj97WJKHr\nhhvrlLFglDyryWJCMrvUU6Ht3uPJNZ6X6nApEMfGdYVXj6QQ4+jnRgpme/eL\n232x9n1jtNqo74bW6PwZFkD45ONdD8h/sc6xyKsRmgZmojZ3uq+vHpu9KVxE\npQ56ch6A0Cp2SfdbyEUBMa2WkiljMX4jDUAxFiPv5ro5natw6d7KhIKc9JmB\n4vSJEPkMuAs+ztz8jAVNhGtG9g0ywQz9epiQO3B+xNK+7eMDUM9xG5MNlajl\nQX0OiBBKqI4LZ0lhw0JRP10SDx7L0RWECQBDrOpDYFkv/altCEHqC+GKY+bs\nnCS3+EiVUl6NRx3LFQzFAAE1phhJnFL6ahA7+cqhkXvB6eaA1btfnF0j7+TA\neFvQOgb/pK1trR20XV64mrcKhMmVPY48gHjf5Tos89S2eruGdb2VQ6VHHyx4\nRddR\r\n=m47y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEHVs0I4IYT0sFJa0ohj9QdzMHxar9YGymUBdLEkwOKTAiAsMJSvWroGgCNuD/kgBR8wTKMDBO7s1nmdmIK88DxpMA=="}]},"maintainers":[{"name":"carnesen","email":"chris.arnesen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcoin-config_0.0.0-0_1546318015417_0.13569748287678274"},"_hasShrinkwrap":false},"0.0.0-1":{"name":"@carnesen/bitcoin-config","description":"Constants and utilities related to Bitcoin configuration","version":"0.0.0-1","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"build":"tsc","build:clean":"rimraf lib && npm run build","build:watch":"npm run build -- --watch","lint":"tslint --project .","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run test:unit && npm run build:clean","test:unit":"jest src","test:unit:coverage":"npm run test:unit -- --coverage","test:unit:watch":"npm run test:unit -- --watch","preversion":"npm test","postversion":"npm publish"},"dependencies":{},"devDependencies":{"@carnesen/tsconfig":"0.0.1","@carnesen/tslint-config":"0.0.3","@types/jest":"23.3.10","@types/node":"10.12.11","@types/temp-write":"3.3.0","@types/tempy":"0.2.0","dtslint":"0.4.2","jest":"23.6.0","rimraf":"2.6.2","temp-write":"3.4.0","tempy":"0.2.1","ts-jest":"23.10.5","ts-node":"7.0.1","tslint":"5.11.0","typescript":"3.2.1"},"license":"MIT","author":{"name":"Chris Arnesen","email":"chris.arnesen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/carnesen/bitcoin-config.git"},"bugs":{"url":"https://github.com/carnesen/bitcoin-config/issues"},"homepage":"https://github.com/carnesen/bitcoin-config#readme","gitHead":"ae9427d4534d4c670c1fa54626b8c00e6527f546","_id":"@carnesen/bitcoin-config@0.0.0-1","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"carnesen","email":"chris.arnesen@gmail.com"},"dist":{"integrity":"sha512-jx84d/nanw4UAalS7ow2cnbcJH8Irt7oo1ik/9w9rsCmhn/i4oCQpHt+aRIPoUjEUMjKcX9kGH/2x6Iz4Ggx5A==","shasum":"89539caa02ac5eac944034a6fd1555e58512b8ae","tarball":"https://registry.npmjs.org/@carnesen/bitcoin-config/-/bitcoin-config-0.0.0-1.tgz","fileCount":98,"unpackedSize":262215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLZbcCRA9TVsSAnZWagAAXRIP/RwbufAKTm2U5uJ3B+7/\nSpi+cJS3wNMSAybQwemYWPr2L5qIbE3VVbxzdyyf0Q2sxibktjLRBJfxoys8\npLe9I+uV/ug9uqMcdX/X0N01lVBlYNnqnNMyczSMbgCPXTXb1yr91eCNwVeO\nwqytDY1R8eaZICWvF+kuZi7YxsGHR2n6Mo8aBER9ySpRIzq3B3sLhc4WRrQN\nstGMzp7fIWYyUEuNjXNv8nphIA5CrvapjlOaTr3MdrFQ/0CnsfsOETqNGXQQ\nEQOYy4z5zRBkdpmbbX45jjzokpRi6cdviA+MjAcfY2S0rY4TQok2MCOPoKIW\n6Dssim7veTCXVJLK6+uLI2HKTwJgkxhhhFqgg8+kfjLThMlF8uRIh9ybIXB7\nkoRJhNY8hvJx9bw8eVukPBAu+kqWBGyDtAaEmxIf3zSvIND2s9m6UVJFGbgc\nZAkDniclhwyLXICExDNMSYclI8XPqk95WNw5GRzUvYnsAQKZhkSJ1zTSpwCc\nO/rzwbpYgZnXaRIaq2M5r3VYJ3i2siUF0rje9nU46oGgob+ro0WhaMIrB41y\nu+1BEGrxLH9/rNvw11eGhZ5cE8oIlNNjfUj71cqLy6Un3WJW72E0hCEx7ueB\nbjpKsJHVfcQ7VdBktUhu6c2BIZlDljx8ScCrOB3gv6Zg3WJQQ8Zyild/1ezh\nNHaq\r\n=bbDq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDolRGRUosr9y94CvRZ08AFPtkFFXHQHOaeRqBgAHxVrQIhAPt/+48g+bExXF+GJgxusthnqApDgwg1HLO1A5OoaCq1"}]},"maintainers":[{"name":"carnesen","email":"chris.arnesen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcoin-config_0.0.0-1_1546491612231_0.46541453874784455"},"_hasShrinkwrap":false},"0.0.0-2":{"name":"@carnesen/bitcoin-config","description":"Constants, utilities, and types for bitcoin server software configuration","version":"0.0.0-2","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"build":"tsc","build:clean":"rimraf lib && npm run build","build:watch":"npm run build -- --watch","lint":"tslint --project .","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run test:unit && npm run build:clean","test:unit":"jest src","test:unit:coverage":"npm run test:unit -- --coverage","test:unit:watch":"npm run test:unit -- --watch","preversion":"npm test","postversion":"npm publish"},"dependencies":{},"devDependencies":{"@carnesen/tsconfig":"0.1.0","@carnesen/tslint-config":"0.1.2","@types/jest":"23.3.12","@types/node":"8.10.39","@types/temp-write":"3.3.0","@types/tempy":"0.2.0","jest":"23.6.0","rimraf":"2.6.3","temp-write":"3.4.0","tempy":"0.2.1","ts-jest":"23.10.5","ts-node":"7.0.1","tslint":"5.12.1","typescript":"3.2.2"},"license":"MIT","author":{"name":"Chris Arnesen","email":"chris.arnesen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/carnesen/bitcoin-config.git"},"bugs":{"url":"https://github.com/carnesen/bitcoin-config/issues"},"homepage":"https://github.com/carnesen/bitcoin-config#readme","gitHead":"955f8bc3cc640426de6e5328d5be69b039d40752","_id":"@carnesen/bitcoin-config@0.0.0-2","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"carnesen","email":"chris.arnesen@gmail.com"},"dist":{"integrity":"sha512-LOzKsjXS97kSUO0Bn8cb6AwAmH8Pqtp4OGwAKLhotxSmCTTMU8LNtJkzbVe6l6jUcUQGNZuecfhAbBQ8N/SCyw==","shasum":"24075c34eb2bff737e23afd4d1a7413c3bc925ba","tarball":"https://registry.npmjs.org/@carnesen/bitcoin-config/-/bitcoin-config-0.0.0-2.tgz","fileCount":98,"unpackedSize":259370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOCvlCRA9TVsSAnZWagAAYBsP/0ayzbdYXrHJjgrEwaii\nO3s77czpC95YiFWhf4778y6LlQthztf0zff5+SI6YWVon0wdivg9jdliSiBa\nVyLvNK+kGQF0XPaI0TqdrTa6sjQ6d5revckgi479AdwkR2OOpoojrNXxiQOD\n6Ug5kNY/rY22PlxKGJk2QfM7zWTgbIII2rkT0gJnRuCzRZF1pY9N+8omdCTE\n6JlYkj+ednBbpEOTn4fJryAyxsI0Qfk5DDQazL3JRbnf1gpbakKbhWa2niAl\nF7rE75yPfMSrSQ1rYhwE/UpC1mkdvNYkoSnJs84wssqiurQU4tlLv4FPU/mp\ntLMDM2DcZln1ZMoxOe0WN/Lr8VhqP8scudZOnuLg7R9ZZrUOhn9YpzSULZmE\nXyujhzJIxTl989FJE4zp5+19T17Nvktxyc169wu9/c8xQDIjoh/tHIasVhZn\n2ejUaXZOtmqI4GXmiFLm4qzUNNpRvS0zdwrk++ljkEud7kzz2DGvZgI6NuAu\nPfS2oao3cwLUj3lnGpAYZgUYxAMFwp499SWenZoCbf3jgezPgPj9FjTnP7v8\nlQO21MfmEImWh1R9Bbzdr7alIra2Hl4flNNtK4okhshtQub1fYGb9q22LIFI\nEDAsOEQvbfiP4GjcQ9N6YFBcv1fV/5kWbLX35YxRQdNoZk3gHlbJ2vBqMqs7\nnkel\r\n=nRZD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEEvnbcCQY+xtMAC9G3RS8no0woJDj4U02jsGB/WQNZ9AiAjNrWsNBI+OP20gACwFUqrp7yTvN5buZ5zMZLOq6h+mA=="}]},"maintainers":[{"name":"carnesen","email":"chris.arnesen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcoin-config_0.0.0-2_1547185124459_0.8466463344751227"},"_hasShrinkwrap":false},"0.0.0-3":{"name":"@carnesen/bitcoin-config","description":"Constants, utilities, and types for bitcoin server software configuration","version":"0.0.0-3","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"build":"tsc --project tsconfig.build.json","build:clean":"rimraf lib && npm run build","build:watch":"npm run build -- --watch","lint":"tslint --project tsconfig.build.json","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run test:unit && npm run build","test:unit":"jest src","test:unit:coverage":"npm run test:unit -- --coverage","test:unit:watch":"npm run test:unit -- --watch","preversion":"npm test && npm run build:clean","postversion":"npm publish"},"dependencies":{},"devDependencies":{"@carnesen/tsconfig":"0.1.0","@carnesen/tslint-config":"0.1.2","@types/jest":"23.3.12","@types/node":"8.10.39","@types/temp-write":"3.3.0","@types/tempy":"0.2.0","jest":"23.6.0","rimraf":"2.6.3","temp-write":"3.4.0","tempy":"0.2.1","ts-jest":"23.10.5","ts-node":"7.0.1","tslint":"5.12.1","typescript":"3.2.2"},"license":"MIT","author":{"name":"Chris Arnesen","email":"chris.arnesen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/carnesen/bitcoin-config.git"},"bugs":{"url":"https://github.com/carnesen/bitcoin-config/issues"},"homepage":"https://github.com/carnesen/bitcoin-config#readme","gitHead":"c06b72d9835f7443ed84812a07639672b24db90a","_id":"@carnesen/bitcoin-config@0.0.0-3","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"carnesen","email":"chris.arnesen@gmail.com"},"dist":{"integrity":"sha512-8blADywY0qkd+QFyegKjaVb1osIcTDUKtNwkCCSny1gKYtnduoFW1DPGgiu/4Y0075NBdm86jw00WqGE6VngOw==","shasum":"5baa37b21f35c0353b8ce23a133b52a03ef3e059","tarball":"https://registry.npmjs.org/@carnesen/bitcoin-config/-/bitcoin-config-0.0.0-3.tgz","fileCount":93,"unpackedSize":228956,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQrrwCRA9TVsSAnZWagAAxrUP+wUg4Bns+OjMnaaM0lgz\nHwtHVj6TEbO50z9dchR5aYnvT0xTaGokd5OJcUchk+qXEFr7CILIljAd0jQX\nbuDvs6ND7Fps8W1C2IKiT9by5x3yP8Ok+1+DE/vO0I+j3pELXmt9ADOE8sMA\nByfDAtQZCh/j09GcU3B0HMA1xDgwiQOIiid/X0K2W9Fi7TlnL8mfoVv0iyIk\n2ZG08kHXdMgSfD5CdlYS+g7UxD74XlSzn5HyP0G3BaR4aNtiZqEUPpv+X0vo\nX3NEREXdD2I/mu6bqK9+K+7ETHmxNcd0I/izygFnln36TUA91tRBMem0Q/qh\nUG45JvRAovf+LkT5Rh3xjN8ofEZ1rdUJAhMpsl1nk8NtR0mxmKs4HPtUYjKN\n+w3HCmsBmMAWz/06rajcXKbnQE5M3a8e84u8/nEYSdI8OnRiRnR9tuPRRBHA\n/n334uznE1NNMQCnRE2I78mW+lR6nBbGvYOQshI3MWRmXQTGAk/Lq1RfmIcR\nAuATAx+QnI9hhwchzD5UCRXfFuZ3OKucTWaAVmtub/QYPU8HvjNK5g9khVm9\nZ7W0Pxz8VQcEfgzrSd71arW6OWbsjOv9uviZxU9qBXZJDD1W4iRTbVxJYH7i\nxday3BDNDfQmwqJ6wbzkHO0nLcGUqqqhM1KcoCQ7+/jzb+Nnz4mwMXyesMky\n1fUX\r\n=TS1V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHWaD39Xa+aBPqAosA7dB2cJRMxcS6js0HkkxgpJbxpHAiEA80anR9rJGZxnNxeZqxjVHBqYdSY1LGz38Y2CqxunhQw="}]},"maintainers":[{"name":"carnesen","email":"chris.arnesen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcoin-config_0.0.0-3_1547877103900_0.46971648075750605"},"_hasShrinkwrap":false},"0.0.0-4":{"name":"@carnesen/bitcoin-config","description":"A Node.js library for bitcoin server software configuration","version":"0.0.0-4","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"build":"tsc --project tsconfig.build.json","build:clean":"rimraf lib && npm run build","build:watch":"npm run build -- --watch","lint":"tslint --project tsconfig.build.json","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run test:unit && npm run build","test:unit":"jest src","test:unit:coverage":"npm run test:unit -- --coverage","test:unit:coverage:watch":"npm run test:unit -- --coverage --watch","test:unit:watch":"npm run test:unit -- --watch","preversion":"npm test && npm run build:clean","postversion":"npm publish"},"dependencies":{},"devDependencies":{"@carnesen/tsconfig":"0.1.0","@carnesen/tslint-config":"0.1.2","@types/jest":"23.3.12","@types/node":"8.10.39","@types/temp-write":"3.3.0","@types/tempy":"0.2.0","jest":"23.6.0","rimraf":"2.6.3","temp-write":"3.4.0","tempy":"0.2.1","ts-jest":"23.10.5","ts-node":"7.0.1","tslint":"5.12.1","typescript":"3.2.2"},"license":"MIT","author":{"name":"Chris Arnesen","email":"chris.arnesen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/carnesen/bitcoin-config.git"},"bugs":{"url":"https://github.com/carnesen/bitcoin-config/issues"},"homepage":"https://github.com/carnesen/bitcoin-config#readme","gitHead":"81516db78444f8f516834ad0ef652221a8b0a60b","_id":"@carnesen/bitcoin-config@0.0.0-4","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"carnesen","email":"chris.arnesen@gmail.com"},"dist":{"integrity":"sha512-FBipLXBUiPVnwCqN8BBMHMLLEl7HpB+AW2iXx/F8dOSS7RpY5owPpP/MjdjeyjmIgDbdY8FUmvoXjrzJ6DHthg==","shasum":"e11fd9cf76389201422417cb4043ed5f2f68c5fd","tarball":"https://registry.npmjs.org/@carnesen/bitcoin-config/-/bitcoin-config-0.0.0-4.tgz","fileCount":143,"unpackedSize":246543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSrXZCRA9TVsSAnZWagAA5x8P/2Jt5CdE2D5PAh/pEkdb\ncJ2rWpF7gLSY/pztF/HeG+GyMPLe6YwQVfqhCn4iKTDZPRIqnuaE/QHjrS+w\nVVbYi3ndGCIN+uJTXmMORLD10/MMlxKTI39tWamqzPTSkiyCyJHLm5ZBUuWB\nyzCBAgSARqKo+nNqbWTyNW2VIkZ09jgMbBHAdtrjIYNAswT7VrH2HQctUyYi\nfkJc7/yIz3k2xlXh8bPz8GFWGlEB/FCw9EzWoCf9iLOcgVLs/VxtpQMQ0rev\nXQtJtT1kW6F6QenCAhUHnQJnC0siiqP5pxpnYsqMboNH6xR0rAkdEAEb7qVM\nFIAL6nJzvEB4PIO5Z68MRAJSszz4HvyZdKcMjfNYqvFeDydGndRBVX6TOFny\nlf3kil6jIkylIOKG3ZFHaXFhZM+53sUvwZo5N/dG3+WR+2ocxLqtulFYzilz\nXo1C1or3tD3Qn5fT8r9cjNBx1xIo+nxPZnS/mnUx1ItAGxbQSxh4xije90QB\nc5PLH4+xyfVH41a7QZk3BrFCN/SnVHpLWTM9z7aNmncL39uIceYSQLd3MHES\nkFBWOsbqsRFYKiMwRfOHNFl/S8a/x0wfjpCwk+sv5j4r073NZ0pYArMVedJF\nVvNq/Jlavc217OUrI7S+8Etas9r9nf63G44aodDvRwozi20N7wZ4Vb6ZgYU7\nvzpG\r\n=VkK+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBkTmVMadRu/nCfjiYc5uLIqoX3R36ff7xYkf+DlvqiAIhAPkM4hrOGCdphE3mQnxFKGkcQnHLs0ERpjahC6yZJa1S"}]},"maintainers":[{"name":"carnesen","email":"chris.arnesen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcoin-config_0.0.0-4_1548400088006_0.22983444335497416"},"_hasShrinkwrap":false},"0.0.0":{"name":"@carnesen/bitcoin-config","description":"A Node.js library for bitcoin server software configuration","version":"0.0.0","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"build":"tsc --project tsconfig.build.json","build:clean":"rimraf lib && npm run build","build:watch":"npm run build -- --watch","lint":"tslint --project tsconfig.build.json","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run test:unit && npm run build","test:unit":"jest src","test:unit:coverage":"npm run test:unit -- --coverage","test:unit:coverage:watch":"npm run test:unit -- --coverage --watch","test:unit:watch":"npm run test:unit -- --watch","preversion":"npm test && npm run build:clean","postversion":"npm publish"},"dependencies":{},"devDependencies":{"@carnesen/tsconfig":"0.1.0","@carnesen/tslint-config":"0.1.2","@types/jest":"23.3.13","@types/node":"10.12.21","@types/temp-write":"3.3.0","@types/tempy":"0.2.0","jest":"24.0.0","rimraf":"2.6.3","temp-write":"3.4.0","tempy":"0.2.1","ts-jest":"23.10.5","ts-node":"8.0.2","tslint":"5.12.1","typescript":"3.3.1"},"license":"MIT","author":{"name":"Chris Arnesen","email":"chris.arnesen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/carnesen/bitcoin-config.git"},"bugs":{"url":"https://github.com/carnesen/bitcoin-config/issues"},"homepage":"https://github.com/carnesen/bitcoin-config#readme","gitHead":"d0ed548aabadc8a62cd0127a217bb47ceb5502d6","_id":"@carnesen/bitcoin-config@0.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"carnesen","email":"chris.arnesen@gmail.com"},"dist":{"integrity":"sha512-iIJvzqDXpOOViFrSnHewfEarFLdS7Hc0DAQi6Nda7GZPF2JmbjcaovLGCmyxVUf7uSOuWZndyDWNYPfoc+5YaQ==","shasum":"c9a1297a3bf9077797f8c1249de10e778996e002","tarball":"https://registry.npmjs.org/@carnesen/bitcoin-config/-/bitcoin-config-0.0.0.tgz","fileCount":143,"unpackedSize":246530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcV1J6CRA9TVsSAnZWagAAYuEP/RJEiG+ferQvir+BQg9d\nvhP7gKIwDuuCvwt9182in5ViW4dU1EtzGAiwFhahfiUMVuqdg9bQACxcO0Hn\nI1x0OObOgtNQpXYgNQUxFXP7yDQSEszn3YEJNRP+Yg9xfk36JijdP7OousJ3\nhlBenN3XZMf7w9fPmCxcpfsJ1NKfR8L8AsftOCyucQNwRHfRFTGUjVyiq34t\n99epzRDE18lg7WODBaICXXbJ5Auvqw1Jd1ihWa5pYCE0zA+KothqzI5Z01lF\nrcjwfuzouIviedd5fX31EXj98ahUFw1YZL5E0v7KQRC4effo0srjydLrPE8U\ntHabgS93av0zSfw5i3RkNGqmtGL+X5DmIDbVsNHID3VpRfP6JyofmrKBoYeH\nJ2JUhik5BxPW0dPAlXTmsDRZjjCc7tk3iqW9G48nsiyk+JBn5i03mrX4JDP4\n1Q2VwHMpb9PvCO+Jx3w0GR7zYSivqngLI0bIW+9LI29DCVqoFTwvlBJMNs6J\n5Ocg7JK2K80XA3gCFS9zP69dWktJL6+z670eK5oqEiUIx02x6rwPqGnpNpv6\n2zMx7O/fxYWKQQe7Hk+CscfeOdx5DxFFk6XlD1Zv9i+dGdfdURUNB5lUadCp\nPmlX9HJ54sQzlNwFoJGu4r9Ah1h8tMpcy1k6gmVHaxZUR++2uBl9iy6t2svj\ngg48\r\n=yUSm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMVv7YcP0getHQ+i1JtM+Hph+X8c5bbVp3YmeNUTihRwIgNgrYmTrQlbqXcpaNaqpg4QPKuNX4BPRymGaq0F7z0QM="}]},"maintainers":[{"name":"carnesen","email":"chris.arnesen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcoin-config_0.0.0_1549226617737_0.39378610095531963"},"_hasShrinkwrap":false,"deprecated":"This project has been abandoned"},"0.0.1":{"name":"@carnesen/bitcoin-config","description":"A Node.js library for bitcoin server software configuration","version":"0.0.1","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"build":"tsc --project tsconfig.build.json","build:clean":"rimraf lib && npm run build","build:watch":"tsc --watch","lint":"tslint --project tsconfig.build.json","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run test:unit && npm run build","test:unit":"jest src","test:unit:coverage":"npm run test:unit -- --coverage","test:unit:coverage:watch":"npm run test:unit -- --coverage --watch","test:unit:watch":"npm run test:unit -- --watch","preversion":"npm test && npm run build:clean","postversion":"npm publish"},"dependencies":{"@types/mkdirp":"0.5.2","mkdirp":"0.5.1"},"devDependencies":{"@carnesen/tsconfig":"0.1.0","@carnesen/tslint-config":"0.1.2","@types/jest":"23.3.13","@types/node":"10.12.21","@types/temp-write":"3.3.0","@types/tempy":"0.2.0","jest":"24.0.0","rimraf":"2.6.3","temp-write":"3.4.0","tempy":"0.2.1","ts-jest":"23.10.5","ts-node":"8.0.2","tslint":"5.12.1","typescript":"3.3.1"},"license":"MIT","author":{"name":"Chris Arnesen","email":"chris.arnesen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/carnesen/bitcoin-config.git"},"bugs":{"url":"https://github.com/carnesen/bitcoin-config/issues"},"homepage":"https://github.com/carnesen/bitcoin-config#readme","gitHead":"0c635e0e725c651598214af9f2fee06b84aa60c7","_id":"@carnesen/bitcoin-config@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"carnesen","email":"chris.arnesen@gmail.com"},"dist":{"integrity":"sha512-x+Vu0SCnpP4O0wvODVq/BXm7W4cNAsyoie32ptT9LkaNkHxsjY+wcOml9MFhngKMgjctZKAi+aghA7QVaDcmzQ==","shasum":"9612bf1e26c6e7a55ce0fc9c76a4d0f0950d1923","tarball":"https://registry.npmjs.org/@carnesen/bitcoin-config/-/bitcoin-config-0.0.1.tgz","fileCount":173,"unpackedSize":269672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXh+SCRA9TVsSAnZWagAAZwoQAJ3KvFti+0r5tot4DWH6\ndiiferBoUzQGBu5iNunkMH7uswdMUc/RA8pZuwnCEIqUeKtYV+2O3nG3DeWT\ncsOXjqA9UKww/oKUut4uXgLjhjS5BbreUE+/+69pq41bmXGGA95tmqCuYozX\nQGgznETtf/64i5qG50EeYRmz1qAvGjJVEdZR/dmMoyfpf53TjnmnVTVWqxYW\nPvYTV9A4Z9sP07bUwPrTAxF0VM+Eb62gUB57xovXe4gUQx5mWvPTJJm+yP5Q\nniowzeeAgO32H9uuLxxUAwyJDLw3pu3TeUU6ai8K8OmhpW9P0t1BCNyCy2Ee\nNzs5H7A2nFGECOWOOyIVJvVsfDsy1mixTPsRPzcqYd4abpV2Zf5ShammXqrp\nPbYqyOLkrDStmxOL8dSacObe2AjIFdFsx/iQVQb0gN9ff4z+zKCHtt0g1S3R\nG6hXtWrKc1iMJT0Mg76/1uoYTJsB1mCxPOpkv9Uihv5bEqZmOzjW0Q/0Lkzm\n3g9hBJvetXZJaRTq6fi+moHJAkW11tgvAnBS2WGmYwl2JRsnQr2vCjNVZJKl\nf16yO10IrT3NotqdsDu4IxS6kHiEfu2uyltfqgpVqx6nVBZcLzA8DDbK7tIo\n1G6IgV0oJsjSY0ZME6N9PGpGbZmH8uqHlTQc/s/MufcC0FKaNHMthwU+0AIa\nNi/i\r\n=/WKd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKJOF6gphTaUTpU1Gch3djysg0UQCDXPqs1xyIAazlYQIhAM65RshhbjESVogGxpRdy9TFuD3QBaqVNwrj6ENb8jOo"}]},"maintainers":[{"name":"carnesen","email":"chris.arnesen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcoin-config_0.0.1_1549672337215_0.06442770443502166"},"_hasShrinkwrap":false,"deprecated":"This project has been abandoned"},"0.0.2":{"name":"@carnesen/bitcoin-config","description":"A Node.js library for bitcoin server software configuration","version":"0.0.2","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"build":"tsc --project tsconfig.build.json","build:clean":"rimraf lib && npm run build","build:watch":"tsc --watch","lint":"tslint --project tsconfig.build.json","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run test:unit && npm run build","test:unit":"jest src","test:unit:watch":"npm run test:unit -- --watch --coverage","preversion":"npm test && npm run build:clean","postversion":"npm publish"},"dependencies":{"@types/mkdirp":"0.5.2","mkdirp":"0.5.1"},"devDependencies":{"@carnesen/tsconfig":"0.1.0","@carnesen/tslint-config":"0.1.2","@types/jest":"23.3.13","@types/node":"10.12.21","@types/temp-write":"3.3.0","@types/tempy":"0.2.0","jest":"24.0.0","rimraf":"2.6.3","temp-write":"3.4.0","tempy":"0.2.1","ts-jest":"23.10.5","ts-node":"8.0.2","tslint":"5.12.1","typescript":"3.3.1"},"license":"MIT","author":{"name":"Chris Arnesen","email":"chris.arnesen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/carnesen/bitcoin-config.git"},"bugs":{"url":"https://github.com/carnesen/bitcoin-config/issues"},"homepage":"https://github.com/carnesen/bitcoin-config#readme","gitHead":"c4e19b764557b065f1b7697cd3471f4154228bcd","_id":"@carnesen/bitcoin-config@0.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"carnesen","email":"chris.arnesen@gmail.com"},"dist":{"integrity":"sha512-gmfnLzpJ777uPtdZe4gl4e7jbSfPAt7LRSouPHq+S2hXFlX89pVEShKsGS5JnDc3yFWCMB+PGQnF7YN+R7SmvQ==","shasum":"8e66a1490c9fb3801c9dc389fa448f8db9633f05","tarball":"https://registry.npmjs.org/@carnesen/bitcoin-config/-/bitcoin-config-0.0.2.tgz","fileCount":193,"unpackedSize":276082,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcYEheCRA9TVsSAnZWagAAxqsP/itd95YE3jpxWUvph5as\nocy7UcBduCMAbfc7FygcsiaRKEd3lXevTqUqdveF9228P87mf+n/BahBLQVs\n30QzvWLCMyWsosxQdRT1av/o1UuHWkkRKxmtZZ//2DgQ/ek0X+3U3y7h0Saz\nrQjwT49y+Ma4MJlL4BI0R31RH8ZuLgozHLBgm2O70C30a7nlurVZabPHN4js\nEVjTiTuuYO8RW5CqkTykGspoGcLFWQ7YQ4SyxNp5t9ktAHDd79j+RWUOGHT8\nUQOgKthpmLBY/bBgLFFGhOl914lBF4FSsjOsjQnq9FrL0tOBD/xheHbGLVDx\nOySojbzW+fS2Gx3y9eX6GxGoloSz4xQA9HnFQsS04AWNHszm0XwiL8e5QFWS\nlc6Oe57I9c5h3wfofvCgRpVfChQiIaldCKPjITVCGB9tJEw4kCg9RMATn7DZ\necaQAaydKXtxQ1Mk+tUx6JVpi6N2U9hFZJ1eTwASiTU5O+Cb4mEkD/8RBme6\nBjjgZ/tgYaNWp6JrTz7lFZ5v1Hq6BwN3bzReI3Gn4HFl6joIgRgHi/eR68nX\nzWFecSjxD975xwjpZfZ5XrZkTP+tMjGiQWRnqi1S9U7sB4/TNIGeYyzf460Y\nuybIMumdU66sv7YfSj6uxgh1577BRJxe/RnE2rYOgqVMED9ZBsAt6+41dPC1\nmHBp\r\n=3OBX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFWVsloJda3VYrgMY3gKUVhHg3NGAb7yv96wimnzANxgIgWfIuCJ0QgPwnHD6a+nQxdnsfWbBpBQbPXI6Cshr+Bp8="}]},"maintainers":[{"name":"carnesen","email":"chris.arnesen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcoin-config_0.0.2_1549813853635_0.11404718094784339"},"_hasShrinkwrap":false,"deprecated":"This project has been abandoned"},"0.0.3":{"name":"@carnesen/bitcoin-config","description":"A Node.js library for bitcoin server software configuration","version":"0.0.3","main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"build":"tsc --project tsconfig.build.json","build:clean":"rimraf lib && npm run build","build:watch":"tsc --watch","lint":"tslint --project tsconfig.build.json","lint:fix":"npm run lint -- --fix","test":"npm run lint && npm run test:unit && npm run build","test:unit":"jest src","test:unit:watch":"npm run test:unit -- --watch --coverage","preversion":"npm test && npm run build:clean","postversion":"npm publish"},"dependencies":{"@types/mkdirp":"0.5.2","mkdirp":"0.5.1"},"devDependencies":{"@carnesen/tsconfig":"0.1.0","@carnesen/tslint-config":"0.1.2","@types/jest":"23.3.13","@types/node":"10.12.21","@types/temp-write":"3.3.0","@types/tempy":"0.2.0","jest":"24.0.0","rimraf":"2.6.3","temp-write":"3.4.0","tempy":"0.2.1","ts-jest":"23.10.5","ts-node":"8.0.2","tslint":"5.12.1","typescript":"3.3.1"},"license":"MIT","author":{"name":"Chris Arnesen","email":"chris.arnesen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/carnesen/bitcoin-config.git"},"bugs":{"url":"https://github.com/carnesen/bitcoin-config/issues"},"homepage":"https://github.com/carnesen/bitcoin-config#readme","gitHead":"e3aea01751e938c89731fbfad8a294867d3a1b11","_id":"@carnesen/bitcoin-config@0.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"carnesen","email":"chris.arnesen@gmail.com"},"dist":{"integrity":"sha512-EZBBkugkBzpRrv+fU9vVR7FX06P6y3v9CqYqWY9bccxuTNqnhptKRrpR+t+bMzKRTXeYKjd6/nxpUeMoJp8QLw==","shasum":"47cc80eb02232c3052fa1e6ff6deafea86f63474","tarball":"https://registry.npmjs.org/@carnesen/bitcoin-config/-/bitcoin-config-0.0.3.tgz","fileCount":188,"unpackedSize":271199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcYJtWCRA9TVsSAnZWagAAM1YQAJcksAg9z0ng77d2QzGu\nqXGB/HSCNZWhkMk65LfDpJLKjgPnIQb9P1Fcf/7S/DTr7eP1F2BGJaW/F9Fk\n1bpSrpE0U+w42zwjDg0K7eT0W2Ye5sqDAjs2vCFzgpLnfZ1+53lCwvTR+S+p\nlUNq1F7a5LEeVec2+0R/0LwBo5O4gDGcSfqgnoD1X8TSaqat7qPZwCgo3wcR\n9WdYHITz58XRsGj4lsrtQAnyqmTv/iyZmef4KkNeGHURMpySsm7uYwybjWji\n4dIL/U7twQ6fArzHNeINfymjWmtFsbKW++TiukP82OWnzwK8jK3IvOYdZlbD\nHU2IMlsyaMaZvVwMLLcdMkQDearjH8FckAXntSQ3xBCu3aXTGdoANtpkXz3I\n6VMKbrRAHWxH1FJ5PTzJ0sSyxVJBmCSUvVIGVHNoJ5zOvFcuq+W8+zNNFnwZ\nZNw7DjUuMe1UEbbGlbr3gY4ZlJ9EVerC4Rn5gFcz22ok2NEGQ8NDll7Fu/t3\n1oVC7x6unt3LuLTnlk2m3kEDrLEjCyy57bK2zXB7RuXYzsenQw36p6xFRsHN\n0uneWG591esxb0XB2wvaMmapZA+3xvNkQjjIVLg4OFzAGnOqyI97uOA2/VWz\nn/pu4NzQDYOV4VMtvb3CcR/ZIFAFUI7+OVFKMRV0aMwpX2DG678Kt+Vc/xy9\nfiAW\r\n=LjsG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDujherv87iwutw7HAmnhR88dBLcaxb1umO6f+M8j+xIAIhAIrTQzfkyOCh18KsLfFDBIM6JjRPiH2EUnMMOVdCgJyT"}]},"maintainers":[{"name":"carnesen","email":"chris.arnesen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bitcoin-config_0.0.3_1549835094369_0.4207716030454218"},"_hasShrinkwrap":false,"deprecated":"This project has been abandoned"}},"time":{"created":"2019-01-01T04:46:55.246Z","0.0.0-0":"2019-01-01T04:46:55.606Z","modified":"2022-04-04T21:58:29.989Z","0.0.0-1":"2019-01-03T05:00:12.405Z","0.0.0-2":"2019-01-11T05:38:44.620Z","0.0.0-3":"2019-01-19T05:51:44.090Z","0.0.0-4":"2019-01-25T07:08:08.535Z","0.0.0":"2019-02-03T20:43:37.867Z","0.0.1":"2019-02-09T00:32:17.840Z","0.0.2":"2019-02-10T15:50:53.753Z","0.0.3":"2019-02-10T21:44:54.504Z"},"maintainers":[{"name":"carnesen","email":"chris.arnesen@gmail.com"}],"description":"A Node.js library for bitcoin server software configuration","homepage":"https://github.com/carnesen/bitcoin-config#readme","repository":{"type":"git","url":"git+https://github.com/carnesen/bitcoin-config.git"},"author":{"name":"Chris Arnesen","email":"chris.arnesen@gmail.com"},"bugs":{"url":"https://github.com/carnesen/bitcoin-config/issues"},"license":"MIT","readme":"# @carnesen/bitcoin-config [![Build Status](https://travis-ci.com/carnesen/bitcoin-config.svg?branch=master)](https://travis-ci.com/carnesen/bitcoin-config)\n\nA Node.js library for bitcoin server software configuration\n\n## Install\n\n```\n$ npm install @carnesen/bitcoin-config\n```\nThe package includes runtime JavaScript files suitable for Node.js >=8 as well as the corresponding TypeScript type declarations.\n\n## Usage\n\nHere's an example that reads and parses the default configuration file (e.g. `~/.bitcoin/bitcoin.conf` on Linux):\n```js\nconst { readConfigFiles, DEFAULT_CONFIG_FILE_PATH } = require('@carnesen/bitcoin-config');\n\nconst config = readConfigFiles(DEFAULT_CONFIG_FILE_PATH);\n\nconsole.log(config);\n/*\n{ regtest: true,\n  daemon: true,\n  rpcconnect: '1.2.3.4',\n  rpcport: 33333 }\n*/\n```\nIn TypeScript, the returned config object is intelligently typed, e.g. `regtest` has type `boolean`.\n\nHere's an example of writing a configuration file:\n```ts\nconst { writeConfigFile, DEFAULT_CONFIG_FILE_PATH } = require('@carnesen/bitcoin-config');\n\nconst { changed } = writeConfigFile(DEFAULT_CONFIG_FILE_PATH, {\n  regtest: true,\n  rpcconnect: '1.2.3.4',\n  sections: {\n    regtest: {\n      rpcport: 33333,\n    },\n  },\n});\n\nconst message = changed\n  ? `Wrote \"${DEFAULT_CONFIG_FILE_PATH}\"`\n  : `File \"${DEFAULT_CONFIG_FILE_PATH}\" has not changed`;\n\nconsole.log(message);\n```\n\nNow the file at `DEFAULT_CONFIG_FILE_PATH` has contents:\n\n```ini\n# This is a bitcoin configuration file written using @carnesen/bitcoin-config\n\n# Run this node on its own independent test network.\nregtest=1\n\n# Send commands to node running on <ip>\nrpcconnect=1.2.3.4\n\n[regtest]\n\n# Listen for JSON-RPC connections on this port.\nrpcport=33333\n```\n\nSuppose now we want to update the configuration file:\n```js\nconst { updateConfigFile, DEFAULT_CONFIG_FILE_PATH } = require('@carnesen/bitcoin-config');\n\nupdateConfigFile(DEFAULT_CONFIG_FILE_PATH, {\n  daemon: true,\n  rpcconnect: null,\n});\n```\nThis update means \"set the `daemon` property to `true` and unset (delete) the `rpcconnect` property\".\n\n## API\n\n### DEFAULT_CONFIG_FILE_PATH\n`string`. The (platform-dependent) default path of the bitcoin configuration file, e.g. `~/.bitcoin/bitcoin.conf` on Linux.\n\n### BITCOIN_CONFIG_OPTIONS\n`{[optionName: string]: {longName, typeName, description, defaultValue}}`. An object containing all available bitcoin configuration options. The keys are the option names (e.g. `rpcuser`) and the values are objects containing `typeName` etc. Currently there are [147 items](https://github.com/carnesen/bitcoin-config/blob/master/src/bitcoin-config-options.ts) in `BITCOIN_CONFIG_OPTIONS`. If an option is missing, please file an issue or submit a pull request on this project's repository on GitHub.\n\n### BitcoinConfig\nA TypeScript type derived from [`BITCOIN_CONFIG_OPTIONS`](#bitcoin_config_options). The type's keys are the option names (e.g. `rpcuser`) and the values are TypeScript analogs of the typeNames. Effectively,\n\n```ts\ntype BitcoinConfig = {\n  testnet: boolean;\n  timeout: number;\n  rpcuser: string;\n  rpcauth: string[];\n  ...\n}\n```\n\n### SectionedConfig\nA TypeScript interface that extends [`BitcoinConfig`](#bitcoinconfig) with an additional property `sections`. As of [Bitcoin Core v0.17.0](https://bitcoincore.org/en/releases/0.17.0/#configuration-sections-for-testnet-and-regtest), configuration files can have [INI](https://en.wikipedia.org/wiki/INI_file#Format) \"sections\", for example:\n```ini\n# bitcoin.conf\nrpcuser=carnesen\n[main]\nrpcpassword=abcd1234\n[regtest]\nrpcpassword=password\n```\nThis means that when the node is running on the \"main\" chain `rpcpassword` is \"abcd1234\", but when it's running in \"regtest\" mode, `rpcpassword` is simply \"password\". The `sections` property of a `SectionedConfig` represents those chain-specific configuration options. Not all options are allowed in all sections. For example, the chain selection options `regtest` and `testnet` are only allowed at the top of the file above the sections. Other options such as `acceptnonstdtxn` are not allowed in the \"main\" section. The `config` argument of `writeConfigFile` described below has type `SectionedConfig`.\n\n### readConfigFile(filePath): sectionedConfig\nReads and parses a bitcoin configuration file from disk\n\n#### filePath\n`string`. Absolute path of a bitcoin configuration file.\n\n#### sectionedConfig\n`SectionedConfig`. As described [above](#sectionedconfig). The return value represents the full contents of a single bitcoin configuration file.\n\n### readConfigFiles(filePath): bitcoinConfig\nReads, parses, and merges a bitcoin configuration file together with all its [`includeconf`](https://github.com/bitcoin/bitcoin/pull/10267/files) files.\n\n#### filePath\n`string`. Absolute path of a bitcoin configuration file.\n\n#### bitcoinConfig\n[`BitcoinConfig`](#bitcoinconfig). Whereas `readConfigFile` returns the full contents of a single file, `readConfigFiles` returns the merged content of (potentially) several files. If the configuration file at `filePath` specifies any `includeconf`s, those are read and merged into the original. What makes the result a `BitcoinConfig` not a `SectionedConfig` is that if there is a configuration section for the currently-active chain, that gets merged into the any-chain values from the top part of the config files above the sections. The logic for casting and merging values is meant to reproduce as closely as possible that of Bitcoin Core. So you're getting as a return value the effective \"active\" configuration.\n\n### writeConfigFile(filePath, sectionedConfig): {changed, serializedConfig, backupFilePath}\nSerializes a configuration object and writes it to disk\n\n#### filePath\n`string`. Absolute path of a bitcoin configuration file.\n\n#### sectionedConfig\n`SectionedConfig`. A configuration object to serialize and write to disk\n\n#### changed\n`boolean`. The `writeConfigFile` function is idempotent in the sense that if an existing file at `filePath` has contents identical to what it's about to write, it does not re-write the file. Instead it just returns `changed` as `false` and leaves the file alone.\n\n#### serializedConfig\n`string`. The serialized representation of the passed configuration object\n\n#### backupFilePath\n`string`. When `writeConfigFile` writes a file to disk, it first move an existing file at that location to `${filePath}.bak`. `backupFilePath` is the absolute path of the backup file.\n\n### getChainName(config): chainName\nExtracts a \"chain name\" (`'main' | 'test' | 'regtest'`) from boolean properties `regtest` and `testnet`.\n\n#### config\n```ts\n{\n  regtest?: boolean;\n  testnet?: boolean;\n}\n```\n\n#### chainName\n`'main' | 'test' | 'regtest'`\n\n### setChainName(config, chainName): nextConfig\nReturns a new configuration object with the boolean properties `regtest` and `testnet` set appropriately based on the provided \"chain name\" (`'main' | 'test' | 'regtest'`).\n\n### getDefaultConfig(chainName): defaultConfig\nReturns an object containing the default configuration for the specified chain\n#### chainName\n`'main' | 'test' | 'regtest'`\n\n#### defaultConfig\n`DefaultConfig`. A [literal-specific](https://www.typescriptlang.org/docs/handbook/advanced-types.html) object type with default values for the specified chain. For example, the expression `getDefaultConfig('main').rpcport` has value `8332` and a numeric literal type `8332`.\n\n### parseConfig(serializedConfig): sectionedConfig\n#### serializedConfig\n`string`. A serialized `SectionConfig`.\n#### sectionedConfig\n`SectionedConfig`. A configuration object parsed from `serializedConfig`.\n\n### serializeConfig(sectionedConfig): serializedConfig\n#### sectionedConfig\n`SectionedConfig`. A configuration object.\n#### serializedConfig\n`string`. An INI-serialized version of `sectionedConfig`.\n\n### updateConfigFile(filePath, delta): returnValue\nUpdates or creates a bitcoin configuration file\n\n#### filePath\n`string`. Absolute path of a bitcoin configuration file. Will be created if it does not exist.\n\n#### delta\n`NullableSectionedConfig`. Basically a `SectionedConfig` but where every property's type includes `null`. A `delta` property value `null` means \"delete this property\".\n\n#### returnValue\nSame as `writeConfigFile` above.\n\n### toAbsolute(filePath, datadir?, chainName?): absoluteFilePath\nConverts a datadir-relative file path into an absolute one.\n\n#### filePath \n`string`. An absolute path (e.g. `'/home/carnesen/.bitcoin/bitcoin.conf'`) or a relative one (e.g. `'bitcoin.conf'`.\n\n#### datadir\n`string` (optional). Absolute path of a bitcoin data directory. Default value is platform dependent, e.g. `~/.bitcoin` on Linux.\n\n#### chainName\n`'main' | 'regtest' | 'test'` (optional). If provided, `''`, `'/regtest'`, or `'/testnet3'`, respectively, is appended to the absolute path. Blocks and other data is written to these subdirectories.\n\n#### absoluteFilePath\n`string`. An absolute file path string.\n\n## More information\nThis library has over 80 unit tests with >98% coverage. [The tests](src/__tests__) make assertions not only about its runtime behavior but also about its types using [dtslint](https://github.com/Microsoft/dtslint). If you want to see more examples of how it works, that'd be a good place to start. If you encounter any bugs or have any questions or feature requests, please don't hesitate to file an issue or submit a pull request on this project's repository on GitHub.\n\n## License\n\nMIT © [Chris Arnesen](https://www.carnesen.com)\n","readmeFilename":"readme.md"}