{"_id":"@austinwoon/convict-secret-format","_rev":"8-9ff0cc70801f547fed22576e22c67c5c","time":{"created":"2023-03-25T06:07:53.655Z","1.0.0":"2023-03-25T05:59:42.911Z","modified":"2023-03-28T07:02:36.041Z","0.0.1":"2023-03-25T06:07:53.874Z","0.0.2":"2023-03-25T06:40:53.263Z","0.0.3":"2023-03-25T06:57:28.681Z","0.0.4":"2023-03-26T15:27:54.021Z","0.0.5":"2023-03-27T02:20:35.747Z","0.0.6":"2023-03-28T07:02:35.918Z"},"name":"@austinwoon/convict-secret-format","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"@austinwoon/convict-secret-format","version":"0.0.1","description":"Secret configuration format for convict configs","main":"dist/index.js","scripts":{"test":"jest","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/austinwoon/convict-secret-format.git"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["convict","secrets","convict-secrets","convict-formats"],"author":{"name":"Austin Woon","email":"austinwoonquanyi@gmail.com","url":"https://austinwoon.dev"},"license":"MIT","bugs":{"url":"https://github.com/austinwoon/convict-secret-format/issues"},"homepage":"https://github.com/austinwoon/convict-secret-format#readme","peerDependencies":{"convict":"^6.0.0"},"devDependencies":{"@types/convict":"^6.1.1","@types/jest":"^29.5.0","convict":"^6.2.4","jest":"^29.5.0","ts-jest":"^29.0.5","typescript":"^5.0.2"},"types":"./dist/index.d.ts","gitHead":"aa53e6e41de1ecb6a11278e18449fe71259c53a5","_id":"@austinwoon/convict-secret-format@0.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-Fc78US4VOIfKGuh7wmnh4KvLXeWMVZI/a0onL+Euuj8ZGJ5IZ9zVMx4pQ2en9wnL0CZYwiUj4u94tesgu4Ebqw==","shasum":"b4e0e4275d87f8b49e81bd71259fd18f42da6fa7","tarball":"https://registry.npmjs.org/@austinwoon/convict-secret-format/-/convict-secret-format-0.0.1.tgz","fileCount":28,"unpackedSize":11643,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBe41iSJehhJkoaYiwwpEI2OY3FRNKbqIElaouiKifVIAiEAuF3OtaFIKYJ2Bf6do4ENjSyT5S94ycxt7tO79xj9ctA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHo+5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrDQ/9Gp478xF4f86cu2oopALHq7k6thPAgGCJ/saHLSifBr8ML4mB\r\niIXuMZJ6HIIH5uGDZi6GFuKzmKiTpSN4pooHXEV/xAimDpQXJ0Di7c/LK8dF\r\nhLLwWLOCo17ffZP8KJFz2bZM6EGJ7cTO5mfHTmjba+zqlPgrs1MrH0GepwuP\r\nkE1PYfW4/jjPY0Vb+DtcdA2eRgzz+AGrni06nUsuzDH7w/5AHsRBmGhIL54c\r\n1H/ofhY6e1bMM3c7xy/QZJ9Tuod1+Z9hukgzDTq3yGN/fVlRs26RBydOL5A2\r\nvW0y6aJcMrOc1dEGx1KP5dTvmXYPmi6wDLN++3ZdG19dtEQzTVf5zKp/uJaD\r\n8nLSSKhaPH8L0upa2SG5b3NpDWBAd7UczZS1hC6cKOV8OepP/RRtl/y/XJUr\r\nKJgndYvv/b6OWprKD5UK6DkBtMYRLz6KWVEoLjSusJlkyc9D8aMU8/xBMRow\r\nIfzMYc+rgtDh0Nr9cxAnRgTgYSa9r/GDKw29MZY5QS1ZdfAlL+PGfhk61vec\r\n6/bQwCI+DS/tfuIWErA+4gsRxnbuI4W3tWSXlQ0oRQbKnkSketsgTCMiJOWq\r\nEK6QVWGBoQ+Gxwi7Lj7vitK3L+8o36fGnEi2M7t1VYmYZ5+jPPG+865RBI4G\r\nVPzeXRQXf/cUJDq2/bjuiwRazCUJoMyXC6o=\r\n=JQYJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"},"directories":{},"maintainers":[{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convict-secret-format_0.0.1_1679724473715_0.42431588587656344"},"_hasShrinkwrap":false},"0.0.2":{"name":"@austinwoon/convict-secret-format","version":"0.0.2","description":"Secret configuration format for convict configs","main":"dist/index.js","scripts":{"test":"jest","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/austinwoon/convict-secret-format.git"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["convict","secrets","convict-secrets","convict-formats"],"author":{"name":"Austin Woon","email":"austinwoonquanyi@gmail.com","url":"https://austinwoon.dev"},"license":"MIT","bugs":{"url":"https://github.com/austinwoon/convict-secret-format/issues"},"homepage":"https://github.com/austinwoon/convict-secret-format#readme","peerDependencies":{"convict":"^6.0.0"},"devDependencies":{"@types/convict":"^6.1.1","@types/jest":"^29.5.0","convict":"^6.2.4","jest":"^29.5.0","ts-jest":"^29.0.5","typescript":"^5.0.2"},"types":"./dist/index.d.ts","gitHead":"c8be7d8a0504a64d4bb9117af262c20d432b9922","_id":"@austinwoon/convict-secret-format@0.0.2","_nodeVersion":"16.14.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-cr2RL6ofBypqI/uCWI7VzlQRbr9iKRx5tVMmj8XC/8S3ZUq6p8NN5P55D4B0Ja/gyEQhLmZpCfzNvm9b+7Xbtw==","shasum":"fa461dd8613dd4733bcdd88e120e3636030bdde9","tarball":"https://registry.npmjs.org/@austinwoon/convict-secret-format/-/convict-secret-format-0.0.2.tgz","fileCount":28,"unpackedSize":14042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsY7CVTs+YzgAdnwEv1z0vc3j75uae5QyOjZ/9HPhNygIgPWG42oxLbfStC2U3IsXcpMMulT5zVUaB/15VL3b6/Vk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHpd1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfHg/+Jiu7L9XnyVCmy98sqClO0uFwO9hLuSC9PSuR6PUjjIclEX1b\r\nhevOVPcufbo1KYspOcESsyFMZ0aIDOk/auuNgG3e8qmKenSRGaMI2x+VKSW2\r\n1LsKPC6BNNhcgm6DSr26/r3SNA0TmBa7zxqd/VnGf6YdnFGZbI933WURPyTI\r\nRnJqFUOswWBstPjudWPySJS3y+j9Lxah+47EXOWZ5F+ZSxMlONANtIrNBtEQ\r\nvSvVQVvUVONvrgaQfyjnT0sCG5X02gEpLwugCN5XZbOgDyaK8FXBbE6XOwO9\r\nwqtgMLZFSMt8xQ6KgnfYCkyneKDa98yN+zc9TACac4r+7GxWx/vh/vM2LGzY\r\n/JYN/RMv/Vq0yrz6G6sWNsIdCgzN7qgouN10bvBZfIbvl2yxmgxD4jPb6m/w\r\nm4dc7VXnd5zbmIFCVV0q9BPqdyaQTiV+BoMSV5nPFAIMZN1yk7mbt0II9l1J\r\naODsPUuLF/RoPpGFFtA/YLk3iQNqiin6h27RtelqIx1AEqotcqRqbkFEwxVR\r\nJSPzbha8dM6EDCgmf4O9sk+LURgaj6Z3JAW0mZmNrybhiACZ/5Itu3B11Xam\r\nUrLGU5lk8IBQ/IfspOR8czMYtdfHVcnI3B/K4ojrBaxYzOLeRee3fZrMo+DY\r\nrlAMeU0opTuv9vfai41MNgesmNBphBNZ81w=\r\n=RoGY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"},"directories":{},"maintainers":[{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convict-secret-format_0.0.2_1679726453057_0.7000745047258741"},"_hasShrinkwrap":false},"0.0.3":{"name":"@austinwoon/convict-secret-format","version":"0.0.3","description":"Secret configuration format for convict configs","main":"dist/index.js","scripts":{"test":"jest","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/austinwoon/convict-secret-format.git"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["convict","secrets","convict-secrets","convict-formats"],"author":{"name":"Austin Woon","email":"austinwoonquanyi@gmail.com","url":"https://austinwoon.dev"},"license":"MIT","bugs":{"url":"https://github.com/austinwoon/convict-secret-format/issues"},"homepage":"https://github.com/austinwoon/convict-secret-format#readme","peerDependencies":{"convict":"^6.0.0"},"devDependencies":{"@types/convict":"^6.1.1","@types/jest":"^29.5.0","convict":"^6.2.4","jest":"^29.5.0","ts-jest":"^29.0.5","typescript":"^5.0.2"},"types":"./dist/index.d.ts","gitHead":"882c5785539bae4f2d984b7c9cf13513a9cd0621","_id":"@austinwoon/convict-secret-format@0.0.3","_nodeVersion":"16.14.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-NdyYN47PK2Ek43kjlFy7KMhMqBHwJTwd04+nNR6KkVAx5u+ugLHsSh+VePRumntZEDXz7PQtLzGdrxH/dtTFpA==","shasum":"826f9109ceab6295de22f7cfb1075f1e067130c6","tarball":"https://registry.npmjs.org/@austinwoon/convict-secret-format/-/convict-secret-format-0.0.3.tgz","fileCount":28,"unpackedSize":13866,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDl1aqyfW01RJq7BZtW1GoBBpMf8sROaCAy3w1cOOM8mAiEApu9IzgoruTHGqxADPyRQ60ipZ6nFV3i0CKlrsWxzN1s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHptYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/WhAAjO8UHu7/4ySjnxsN+BptpMs53vZ083K9BaeKhNY2aT7r6Hxf\r\niFBRfJ3PvjlNCXi8BH49IviNT2PrE6XuwJZA8cbYlblHQwZm93fcZH/ENEt2\r\n5VSvCM4L+HfwOnXoVRwEePtRciHKzY+62WEXWXZY70Lozqt9n+5Uexev6fgY\r\nXO4uB7/GWAMHTxCnOLVfZgMIjIkR5z+yQPeJLHcQc4NafmjAou4kCwGrqUmr\r\nYESelJHwgqIfUzwEpOZVkt3MGELlHSyvfo58UQPqoTwG6BK8vyMWmi1JE75w\r\no7Jtbg9OwalfH5OlHWSLltBJJLWacc76XWIzhrmx71PBMFRHZALncIFl3ZRc\r\n1KfrFpYe8QcHyjHk82XDoMlPdVCeYukOIdR2d2Jkk79PkPvizANRwdu71bDd\r\nF37qeIBlJ63Ss5H5Ae+OloCnjvb7szcI7QGioPDL+Uaby6dBbSojv9C8IqXY\r\nWTBU1hhDQzPZ+LpFe77/ad5tJ4Sxan9+Di21huB7K1SW/9M6tDUG7FZnh/vN\r\nfLD146dUNA8PpQoYh1Pp6ISI4gY7a7rSIb4Vzkqi5qR8sRXBCVD5SztJW83L\r\nPuvPwS+rPFsU6JivUs5SnzZlC8Tcv1P538bGQxKNt3x5Yrl7sqLSoD8mgP4O\r\nWv3dCto4Wv8DqxPB7SE6buMKqzBP+5QlLQg=\r\n=mgVf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"},"directories":{},"maintainers":[{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convict-secret-format_0.0.3_1679727448490_0.7722909148780135"},"_hasShrinkwrap":false},"0.0.4":{"name":"@austinwoon/convict-secret-format","version":"0.0.4","description":"Secret configuration format for convict configs","main":"dist/index.js","scripts":{"test":"jest","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/austinwoon/convict-secret-format.git"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["convict","secrets","convict-secrets","convict-formats"],"author":{"name":"Austin Woon","email":"austinwoonquanyi@gmail.com","url":"https://austinwoon.dev"},"license":"MIT","bugs":{"url":"https://github.com/austinwoon/convict-secret-format/issues"},"homepage":"https://github.com/austinwoon/convict-secret-format#readme","peerDependencies":{"convict":"^6.0.0"},"devDependencies":{"@types/convict":"^6.1.1","@types/jest":"^29.5.0","convict":"^6.2.4","jest":"^29.5.0","ts-jest":"^29.0.5","typescript":"^5.0.2"},"types":"./dist/index.d.ts","gitHead":"ba525c263b3752859344e3254b545c4b913ae0f1","_id":"@austinwoon/convict-secret-format@0.0.4","_nodeVersion":"16.14.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-J1ZJZzdsMks/uvKk0ftCrmTd+Jv6GnldZvkTtxVCW+Q3TYpg0Fu11OF6cys5TMhxhEVRW9X7FXVrMdRGD5HIqA==","shasum":"342d460577845a2bb4f63e5aa434039d0020ddc0","tarball":"https://registry.npmjs.org/@austinwoon/convict-secret-format/-/convict-secret-format-0.0.4.tgz","fileCount":28,"unpackedSize":16063,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzUVRsSWyws08rfMPdsw9sT9Q4NOERpI3HOOzonLEj2gIgN7C7ifJniKQ9lAYGrRfR8INIvmqk3qUbJm5k9JorPus="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIGR6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrh/g//ZIjsFCZF1pHo4+uygVKSqUhJixQg/nsB7xd25Slj7ai2fljv\r\nSFaWgTDLlsGfQTJkpEmUymVIE/i2f/pnCLe5pT4DBDR0VCinrQIiMVu5UeMv\r\ns5pRC53t8Zn+EnHz92o/Sza8Mxqy0PmKpz/BTvLuGVEMlIQ3FyC52Zt7JZEQ\r\nGmCaRkozGBUl6FNGKD4hev5b4H1rRgIRDNhxblduNnyMvPp8Bg3ok1Pbl+Tl\r\nYF8A2xV+S525A3ltZkaRc7AwA1WzYEDzBoJBFzPoqtCUI2wOgqME0IVhyMfK\r\nXpq2Trg3geSivOt9rspMlw3e3VjEhDu5sxTzCe+qcrjYo4yRFkj/O5hCy99y\r\n9A4Ia9uMU3Ml9tz0lZNi190Il8UK+lGiFq9UuhiACdJqeHC4TAM/0ld/gcqB\r\nVq+azA0Knxa/TlDYMXmyCraxAVxHxvMbZjr721Bp51lzycGgJwlv9akZAJEU\r\n9lqf9pb8/M/POLKergz19TeDv8vCjPSJiRqvngICIcArYWW21LED1BeSY3uC\r\nDG/Ql3EVgfcxca4vhWt7n36yj75v7VDtqrKFlYTl97he4GmDcrfppZcMXUYo\r\nZacbWiAC8ht+gOkNJPSVfZjQAPdBzMzYSQsM+bYIRN4EGu620jCqobennPzo\r\nhZDzSN46tAAXlfayWdojKm+eFpoeJYoEMH0=\r\n=jJhj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"},"directories":{},"maintainers":[{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convict-secret-format_0.0.4_1679844473729_0.4819477662696485"},"_hasShrinkwrap":false},"0.0.5":{"name":"@austinwoon/convict-secret-format","version":"0.0.5","description":"Secret configuration format for convict configs","main":"dist/index.js","scripts":{"test":"jest","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/austinwoon/convict-secret-format.git"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["convict","secrets","convict-secrets","convict-formats"],"author":{"name":"Austin Woon","email":"austinwoonquanyi@gmail.com","url":"https://austinwoon.dev"},"license":"MIT","bugs":{"url":"https://github.com/austinwoon/convict-secret-format/issues"},"homepage":"https://github.com/austinwoon/convict-secret-format#readme","peerDependencies":{"convict":"^6.0.0"},"devDependencies":{"@types/convict":"^6.1.1","@types/jest":"^29.5.0","convict":"^6.2.4","jest":"^29.5.0","ts-jest":"^29.0.5","typescript":"^5.0.2"},"types":"./dist/index.d.ts","gitHead":"b528c9e6ba528262aee2664b1abdd6a3cd645788","_id":"@austinwoon/convict-secret-format@0.0.5","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-lxJ8dy9juYIueGtdDW563+6lMOuGj6F/x5PubX+XDoZnsbzUcoxNVwkZxo5wkKO/MsC2cz89klLfP/5Eowo0ug==","shasum":"e8be031d6305bd88d637edcaf1384cc7e3e8859a","tarball":"https://registry.npmjs.org/@austinwoon/convict-secret-format/-/convict-secret-format-0.0.5.tgz","fileCount":28,"unpackedSize":16833,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCh+OL7iFMFwecpMeIgSApll1w0RL1CFJpqM/l7+RL/bAIhAMGi4E+IfhO4DVzQhpHImZ1qGTLKlL5g0GMzdJzEHX7c"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIP1zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqvFRAAibkQWzvRXG+iRogCMMVMt9isdc1+gP2/A036CDgsRyowxO4k\r\nghQ0AjjlxZICjdjeU37fas+A9gnLY0/DOGgr6R1QBzs7a714WhIqb1oK1jGu\r\nOpOerrTtUToDf9dQJWeYYzGIJ0W6YghiywNhH3p4RT3bWFoETBT1pH0XQeA5\r\nX32QGrOlqBHj6ymFlj7Vhzg66ZR/vBXA7LMdJ75iovC+CjFIxOHILPJy0RaI\r\n4Yd8iEuXoqyo8sGmOB7zdYQENCRRalhb1ssa4vOI+WflOGpEr3h5Ivs0xPaa\r\nU22ZyGMQs4+ElCpx395yfLZu1PGQ3HRfoI6zt/AlFuZetkHwKB9QaC6HYtpH\r\ng+JVlO/UvMsLe8renCzwkraRR6wmRYLxVbvRlqxUuhg21fECmaqRykM40rp/\r\nv2I/PUsrPhfTcT5tNep5we3U3Nxllkfi11RP8IDF4elGQJLGMbfG5Vmy0aMm\r\nXByH3vUG/0A9HXxYOmkJPjZakalZt9+1/24/buUg7XDEtB7d111kh62kMiTc\r\nFc9Qk+FS8DeZIxnJvaSqmM+H1xiRk2/xv+tMFOlV7oUNWP93XA3cr9WiD7fN\r\na1EdazD60spTsbm3gN4H+1FWPS0wURBH1uGWbuxVjiqI9S4+RXlE65JKq5Xg\r\nKKwpzHHJfcDMBwpZFQgK0xjXAteKc0iFkCU=\r\n=Lq3G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"},"directories":{},"maintainers":[{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convict-secret-format_0.0.5_1679883635580_0.6465543995601057"},"_hasShrinkwrap":false},"0.0.6":{"name":"@austinwoon/convict-secret-format","version":"0.0.6","description":"Secret configuration format for convict configs","main":"dist/index.js","scripts":{"test":"jest","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/austinwoon/convict-secret-format.git"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["convict","secrets","convict-secrets","convict-formats","convict-format"],"author":{"name":"Austin Woon","email":"austinwoonquanyi@gmail.com","url":"https://austinwoon.dev"},"license":"MIT","bugs":{"url":"https://github.com/austinwoon/convict-secret-format/issues"},"homepage":"https://github.com/austinwoon/convict-secret-format#readme","peerDependencies":{"convict":"^6.0.0"},"devDependencies":{"@types/convict":"^6.1.1","@types/jest":"^29.5.0","convict":"^6.2.4","jest":"^29.5.0","ts-jest":"^29.0.5","typescript":"^5.0.2"},"types":"./dist/index.d.ts","gitHead":"0909a45f5097a2c79f48967cd4e29bd196137c18","_id":"@austinwoon/convict-secret-format@0.0.6","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-CGng+VVRCxLyjsmsJ5s6btfrHl5NUsFS9jI7saznf+ixCTeowe2hOSoMJ6gmskq8eLK0WtcBN1CvnvzrrSNbdQ==","shasum":"9f4521ba6aa77f60f304150278b953e3dc9a8082","tarball":"https://registry.npmjs.org/@austinwoon/convict-secret-format/-/convict-secret-format-0.0.6.tgz","fileCount":18,"unpackedSize":11197,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAxPYPILybHpgQ8u9zSc2ICXQPzjW7McSyLeD6urti0AiAJW1P5InGZwAlRjDD2tjy1wD9Azek1GWIpCBw1rd3JYQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIpELACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqv2A//frfY4ewZ4ifKTNdfQkGGkHSKTbC/whq2FZ6QmXWyKfCJSyrb\r\nFIaDVC14cgd+tGIm9w0reSguVXqS2RSkgNPyNm/yRxtwqQ+vzolRCLjsQgPc\r\nOKDoQW9fsilKo1Jo2cdYd9DVuVijBrYiOUBe6mnuMgc1Zad3Fw6t5r+HNYWB\r\nt3Dp0BY4LWTWh9yjlx+PkU4ROvd0cQn9Eui/L5Vnu6QMlfL4osapBQ8o/e9B\r\nYc3qHHxcZzgZoaOpMOjAR97pPRCV57UVdpzUAzQCH975IhPdLWSeQFi+xKcO\r\nlUhAqVH5FWlxfP48ze1KXZxM68ibm7lMxjuyGkXzF8cpqIhUkBgMJ+Czaqqo\r\nUjBogCujikbWJ2TvZ6Rh37iaGd6Q9jrdwVwaBNIRK6jm/ThGth2S+3UY4m9v\r\njAmpO3zLx7y4SZ7t/RX5vdciHdfv+Toch3EpqcYe0V2qymaAsWtU9t3QDYcL\r\nWponAT4v2bPUZDcbdxYICp5vqKr6aF1e4n8OckrXVPVMnNowefwfd3hQzfkq\r\nIDmyPmATnMeohsuGeFX3lFYw8ATKpusF6hG09AhVAsM3wOZkC5ss4YYRGMu+\r\n4WOoj1Y5iIXO7/zdZ8oTcmEF9Ad9mW5I7TaOsR72Rk1933a2OAyjS1oG1BQE\r\nggJvqGXSrXNAYk7evE/pM7yhxUPN5F8qXQ4=\r\n=ZU7A\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"},"directories":{},"maintainers":[{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convict-secret-format_0.0.6_1679986955743_0.5810190157154471"},"_hasShrinkwrap":false}},"maintainers":[{"name":"austinwoon","email":"austinwoonquanyi@gmail.com"}],"description":"Secret configuration format for convict configs","homepage":"https://github.com/austinwoon/convict-secret-format#readme","keywords":["convict","secrets","convict-secrets","convict-formats","convict-format"],"repository":{"type":"git","url":"git+https://github.com/austinwoon/convict-secret-format.git"},"author":{"name":"Austin Woon","email":"austinwoonquanyi@gmail.com","url":"https://austinwoon.dev"},"bugs":{"url":"https://github.com/austinwoon/convict-secret-format/issues"},"license":"MIT","readme":"# convict-secret-format\n\n[![Version](https://img.shields.io/npm/v/@austinwoon/convict-secret-format)](https://www.npmjs.com/package/@austinwoon/convict-secret-format)\n\n## Description\n\nAdds a new validation format for secrets to prevent secrets from being logged in stdout.\n\n### Motivations\n\n[node-convict](https://github.com/mozilla/node-convict) currently exposes a property to flag secrets as sensitive by stating `sensitive: true` during initialization. However, this only redacts sensitive information if you were to coerce the `convict` object to a string. Logging the the object from the return value of `convict().getProperties()` will output sensitive information.\n\nThis package serves to expose a new format to always mask secret values.\n\n**Example of secret logging leaks**\n\nThe code snippet below exemplifies how a secret can get logged by accident even when its been marked as `sensitive`.\n\n```typescript\nconst config = convict({\n  secret: {\n    env: \"SECRET\",\n    default: \"secret-key-value\",\n    sensitive: true,\n  },\n});\n\n// This line will include `secret-key-value` in logs\nconsole.log(config.getProperties());\n\n// Only when you coerce config to string, will the value be changed to SENSITIVE\nconsole.log(config.toString());\n```\n\n## Usage\n\nSimply extend convict with the new format by calling `getSecretConfigFormat()`. Then, state the default format name, `secret-format` as the format to use in your configs.\n\nNote: The values in your `.env` file will automatically get coerced to the `SecretConfig` type.\n\n```typescript\n# extend convict format with SecretConfig\nconvict.addFormat(getSecretConfigFormat());\n\n# use the `secret-format` format. With the config below, the value of `SECRET` in your `.env` file will be coerced to `SecretConfig`\nconst config = convict({\n  secret: {\n    env: 'SECRET',\n    default: SecretConfig(\"\"),\n    format: \"secret-format\",\n  }\n})\n\n// All secrets will output REDACTED\nconsole.log(config.getProperties())\n\n// If you wish to get the value of the secret, call `getValue()`\nconsole.log(config.getProperties().secret.getValue())\n```\n\n### Validation\n\nThis will not work as the default value does not conform to the `SecretConfigProps` type\n\n```typescript\nconst config = convict({\n  secret: {\n    env: \"SECRET\",\n    default: { value: \"test\" },\n    format: \"secret-format\",\n  },\n});\n\n// throws a TypeError since value does not conform to shape of `SecretConfigProps`\nconfig.validate();\n```\n\n### Formatting options available\n\n`getSecretConfigFormat` exposes options to customize the following:\n\n1. `censorFn`: A callback function to change the `toString` or `toJSON` representation of the secret value.\n2. `formatName`: The name of the format to pass to `format` property. Use this in event of format naming collisions with the default `secret-format` name.\n\n**Example**\n\n```typescript\nconvict.addFormat(\n  getSecretConfigFormat({\n    censorFn: () => \"censored\",\n    formatName: \"secret-format-2\",\n  })\n);\n\n// now you have to use secret-format-2 as the name in format instead\nconst config = convict({\n  secret: {\n    env: \"SECRET\",\n    default: SecretConfig(\"\"),\n    format: \"secret-format-2\",\n  },\n})\n  .validate()\n  .getProperties();\n\n// this will now output `censored`, instead of `REDACTED`\nconsole.log(config.secret);\n```\n","readmeFilename":"README.md"}