{"_id":"@byte-this/email-templator","_rev":"6-e6462cc04b1dc92a7f86012ddd40a747","name":"@byte-this/email-templator","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.1":{"name":"@byte-this/email-templator","version":"1.0.1","description":"Typescript API to facilitate email markup generation and help deal with bad email clients.","main":"public-api.js","types":"public-api.d.ts","scripts":{"test":"jest","test:coverage":"jest --coverage && jest-coverage-badges","format":"npx prettier --write .","build":"node build-cli.js build","publish:npm":"node build-cli.js publish"},"repository":{"type":"git","url":"git+https://github.com/ByteThisStore/funscript.git"},"keywords":["email","markup","template"],"author":{"name":"Byte This!"},"license":"ISC","bugs":{"url":"https://github.com/ByteThisStore/email-templator/issues"},"homepage":"https://github.com/ByteThisStore/email-templator#readme","devDependencies":{"@types/jest":"^26.0.23","cpy-cli":"^3.1.1","jest":"^26.6.3","jest-coverage-badges":"^1.1.2","prettier":"^2.3.0","ts-jest":"^26.5.6","ts-node":"^9.1.1","typescript":"^4.2.4"},"_id":"@byte-this/email-templator@1.0.1","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-2I+JVb3VaLLRZc5HQ0OlOQyPpeeCgA7X19Cb4XruS9s1fZvHTRQN5wB6lKQLoUKMfgRu9nBam//LLYj29bs1SA==","shasum":"f07cd32b307c7e8e8e1a5b77d82da45e3fdf4801","tarball":"https://registry.npmjs.org/@byte-this/email-templator/-/email-templator-1.0.1.tgz","fileCount":10,"unpackedSize":21158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgns+NCRA9TVsSAnZWagAAyi0QAJtCntQMPp9a5crA072j\nTBOoajOPOXBXV5OibSSfimSrhGMON9r44QM6B0SEn+Ob6dPtdgGVXClDoPOx\n18UNIvVncfLHpev0dRqvqwXOwGX8IW0BEdacTZA4vXbl0R0zqMCkh//4KAxQ\ndyxTOgwZ4nnKf9t5GyrBGTwM/eVRo8KnQ7ITMm32BaWvrYPmloosYCTdD18R\nKKmRw067DT4Y5ofgvdP3mvd8ZG2U63EZoc+u9kHkD0lxA0ZO9PSbdZEvOztZ\ndXzKx0F+hscAQ/jgBZec0Gx9LUEpFNDPz+/ydBgBv+6yU/fDxfeiOlCOJqFb\nDYrNjNk4WBG4VRsd/egyScfZDqX3TPOJDGxigBH7mgNisNvlnnqNdMkXdwvi\nF1Y/DfX+RT8GYldaUpFFundfLmX7u+kawlrlnTEIdlHFoYusqgSR7ZkkHBL1\n48rdQUrE55VyZwmSnDowtPtkF1lDGeykd3tL4V5eUxYBuYk5dqLsx69QqLD4\no486BdmeYMcZZxcMqMRFrJEvaiF7dyxBLOqt6E+4+Mfzalb5zieqySLDnMB8\nma5wUhJ2GtT+RNpRnQjTtZO3ESs1ADz7EwrEgejvDzNZ6tGKgE+mORXTYzF7\nA2GHpZN0173aQOoLwSPsiBXMBInfL+OJ3rLg2Z5LUFQvezXfSokYvMvT0eLo\nhOCQ\r\n=gk+A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB2GfPouebc42F1DA564IfAKbxo7K0PKO5GWBWly5KYnAiB2S5ks7W5HeX5+3Z0UhLzxlSeV2MtgtUl83s7SeD5l0Q=="}]},"_npmUser":{"name":"byte-this","email":"bytethisstore@gmail.com"},"directories":{},"maintainers":[{"name":"byte-this","email":"bytethisstore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-templator_1.0.1_1621020557531_0.4836739014074789"},"_hasShrinkwrap":false},"1.0.2":{"name":"@byte-this/email-templator","version":"1.0.2","description":"Typescript API to facilitate email markup generation and help deal with bad email clients.","main":"public-api.js","types":"public-api.d.ts","scripts":{"test":"jest","test:coverage":"jest --coverage && jest-coverage-badges","format":"npx prettier --write .","build":"node build-cli.js build","publish:npm":"node build-cli.js publish"},"repository":{"type":"git","url":"git+https://github.com/ByteThisStore/email-templator.git"},"keywords":["email","markup","template"],"author":{"name":"Byte This!"},"license":"ISC","bugs":{"url":"https://github.com/ByteThisStore/email-templator/issues"},"homepage":"https://github.com/ByteThisStore/email-templator#readme","devDependencies":{"@types/jest":"^26.0.23","cpy-cli":"^3.1.1","jest":"^26.6.3","jest-coverage-badges":"^1.1.2","prettier":"^2.3.0","ts-jest":"^26.5.6","ts-node":"^9.1.1","typescript":"^4.2.4"},"_id":"@byte-this/email-templator@1.0.2","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-xtsgKa7DIpeKyVk36IGVdB87oa2saAl512kn735e1DdWu+E2H6IbsbEFCwNBUndQ3yRYCGUjgci+zjuOH/S/ig==","shasum":"81716470c20711a7f93d77303543f5f0268c9b73","tarball":"https://registry.npmjs.org/@byte-this/email-templator/-/email-templator-1.0.2.tgz","fileCount":10,"unpackedSize":21164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgntBkCRA9TVsSAnZWagAA2F8P/RtCC1QBXOd7RZ5hzMj8\nzaeQMGE6IHIw68WIBuH3DMzOmWxJJWNNEOrtLuAd5+oyKdoz3e64dGpv2j/w\ncpNJrQlIboguB0LBpUOi/meDlyOWCNnZQT07yEvxAFD/YT9lQ3cgk+b45qtr\nRL52q3LRmoeM2Fpt4ESlJOjgqd6gSYxjGLyjSOQIvSH9V91bmg9YV5xiR29e\nnwXXPwTBPJC81Y38RPLfg4e6RVBnUeT4e+5CfKD4fnOIqQtGPhfmSlIi7hW3\nLk+fRsSiW+YRBDBnwPOwCKkz7EpqWo1ZPPGF2OzRBSbD/nlWE7EJ6x4+g73N\ndNEvupDgTAlG/09JeTf4/Zv6yQBnmbBek38eIUAQs2BajeTmK1rBWsyucy+Y\nBeNIVyjXSD4t6PVx8PnzsQNnz79qfKo59nwxhXy/SRKOiUpspSjJaKUqnm8p\njA7rwH6DCigtM9h05vcTAFvKUTBQiKXC9mkV0B8vt9aadkUp7egfxOGH4hdE\n92h7goxBkdVgo5Vm8Orn+X4UfDxNmzOBhE8ne1AFW7t8tRh/ZZD35FrOnwCf\n7mxASQ9XJce9Iqh/EX1mJCw4TwZhJgFO3xrpEeEsOrgjpOGX1riV0uZ+ssuu\noXNxiTUlzgaueCv0QI/mzCkMpZq5ljWuc8MqQdswQlTlLrG7JKhRdcnwVuCY\nS9py\r\n=oYjj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCs3bEQM/99GUC2qwTIQlsGSegj+DptRh7fkjTs/l9SFQIhAJRs6WsJynzfq3GVa+DXtVtdeCVEpYUqswx9+p1zG7zo"}]},"_npmUser":{"name":"byte-this","email":"bytethisstore@gmail.com"},"directories":{},"maintainers":[{"name":"byte-this","email":"bytethisstore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-templator_1.0.2_1621020772238_0.6816114385168683"},"_hasShrinkwrap":false},"1.0.3":{"name":"@byte-this/email-templator","version":"1.0.3","description":"Typescript API to facilitate email markup generation and help deal with bad email clients.","main":"public-api.js","types":"public-api.d.ts","scripts":{"test":"jest","test:coverage":"jest --coverage && jest-coverage-badges","format":"npx prettier --write .","build":"node build-cli.js build","publish:npm":"node build-cli.js publish"},"repository":{"type":"git","url":"git+https://github.com/ByteThisStore/email-templator.git"},"keywords":["email","markup","template"],"author":{"name":"Byte This!"},"license":"ISC","bugs":{"url":"https://github.com/ByteThisStore/email-templator/issues"},"homepage":"https://github.com/ByteThisStore/email-templator#readme","devDependencies":{"@types/jest":"^26.0.23","cpy-cli":"^3.1.1","jest":"^26.6.3","jest-coverage-badges":"^1.1.2","prettier":"^2.3.0","ts-jest":"^26.5.6","ts-node":"^9.1.1","typescript":"^4.2.4"},"_id":"@byte-this/email-templator@1.0.3","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-fskl23weZfRhix0iGndF/aBs2VwDIZ4vPFgnaTr5VfFjsgaY2cWJ5A7DKZSKmegk1benyeQZPy2cjTPGnWWWDA==","shasum":"88772ec283223ac1fe49d6ee80276c8fa9c5c3bc","tarball":"https://registry.npmjs.org/@byte-this/email-templator/-/email-templator-1.0.3.tgz","fileCount":12,"unpackedSize":21975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgntRsCRA9TVsSAnZWagAAomkP/01pDKIpawAPaO/RsgzY\nN8ogHxONG/8tuwLAtNTtWnBZekWjt9rL0DK2S7t2yjLI4SFGgWWNabdCqjSf\nlc/QJJtNCfjGapHitQb4f7BaE0EKzh0tkEmox/MCuIxH5F86VN4jpad999xU\np27BytvVtS25qYgFdKLDUDhSjhUklSralDIHwgJICAtc5BFt1Zs1pNfOTHAZ\nhfS5xBrmW7nsfVgQm0DLMNL8G2tPQfdC9fcjPvFiOvcCeK8pHfbTHdXGlENJ\nNW0k4vOLarOiXRbuP5gGHgaJFQk4+aiJvdZ6GtInQsZW6myfko+CFwvdVARi\nfdH1TxuXb7/mRJwAoXjaWj1GJGWGPkQnZaI4OokzVxgtorG4gWfW7ard8MS6\n8/73NFS1JKnITIek7MaswJCFaGH3yWFszW7MHRDdWtst8GbqAVlJBebuAxRH\nmNAqgMmftvKP0kOn1L6ryq+FvPgRZtPH4fTm4pfAlbr3aLa80g0tHqujso2T\nw0SQQnuox13C8pYVK7Aklugn17aGbduk1cN/KHeVnYpgWRENJWD2wMRfUCrW\nu9wPALPb3G/pY3GFjpK27d/wXgpQ7oXE0j3tcCt/Sa1tmJGhz26/tjGUgBBV\nFNhmfCiPRp7A+LBECqifiIrq52KJWMDuYH19aW8IfVbmDYxzkaDhiMnditjy\nMUPh\r\n=ymnH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEc0Fitfbvc9ebaJ+Fw9YBCJ0uy87b6mqDH2b0l91DugIhAKAZn2eiWr/JWGqdxJ5Xvv2ZwGqvjOlM6FXuEpRbVh2o"}]},"_npmUser":{"name":"byte-this","email":"bytethisstore@gmail.com"},"directories":{},"maintainers":[{"name":"byte-this","email":"bytethisstore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-templator_1.0.3_1621021804309_0.37055451838843956"},"_hasShrinkwrap":false},"1.0.4":{"name":"@byte-this/email-templator","version":"1.0.4","description":"Typescript API to facilitate email markup generation and help deal with bad email clients.","main":"public-api.js","types":"public-api.d.ts","scripts":{"test":"jest","test:coverage":"jest --coverage && jest-coverage-badges","format":"npx prettier --write .","build":"node build-cli.js build","publish:npm":"node build-cli.js publish"},"repository":{"type":"git","url":"git+https://github.com/ByteThisStore/email-templator.git"},"keywords":["email","markup","template"],"author":{"name":"Byte This!"},"license":"ISC","bugs":{"url":"https://github.com/ByteThisStore/email-templator/issues"},"homepage":"https://github.com/ByteThisStore/email-templator#readme","devDependencies":{"@types/jest":"^26.0.23","cpy-cli":"^3.1.1","jest":"^26.6.3","jest-coverage-badges":"^1.1.2","prettier":"^2.3.0","ts-jest":"^26.5.6","ts-node":"^9.1.1","typescript":"^4.2.4"},"_id":"@byte-this/email-templator@1.0.4","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-9CYRXcdPQqiXO6aiL+PTyXM40tBVCElFZ9GIBHHp3P7VjQnbnI6zIGPUv08dRLIlQDZgXvCBgYucDKpqEFTnBQ==","shasum":"fb5acab90625931b3d900f047ccc878d23cf52c8","tarball":"https://registry.npmjs.org/@byte-this/email-templator/-/email-templator-1.0.4.tgz","fileCount":12,"unpackedSize":22214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+OElCRA9TVsSAnZWagAALPwQAJP1yYmnHvybKwblLMvP\nqwxeuNbk33oLJYkHw4eZRGxOfqlnh/M6CGZdGaYSU8995c1BtY4/j6uGl6kz\nFhjm58RR0/dOmsrfZNmmiDOhJ3RPwTSTxZ+2goLDG7YrRhLHsW+yNtKNdST8\nJb5rSZqZT5AAEAYs34Yv3Z2Gx4Ok/Z86N20UJPsH1aE7At8qXJVly6cx+SId\n0W+aWxWO9W3OaqRv8wlYpmKGyZiuEyUSmhGcyXeTl9lxeeN6+TFM3kbxO/yQ\nsXDObIjYosnFWYwjtiO2dJd8SsDIU6on/W1xluFtDWfsSSngumDbbGzqvH2e\npsQKim/OhdU5UwFNIYUd5kl7oyIMxeQJYcWjlFQBqNYyMVu2TycnZyir/pEj\nBao7ad36oM91qGvFsv0pwpwjf85n5I9Co9fuF2mlEtewkOkWPxY9o/5X6FYA\nj+c5FYwa7V56zzMKFgHkzuotQ9hFYQn5207XR9jSzGOubILZfilNtClK2rlJ\nDCuwNFRoVfarixUlIZSI3J4fkD7cMT5p1i4+GdZng9IWD5WAkEO1gTDncHkP\n75eZjALN9vbqzJkubvUK6k5isQzWRllCLTupuO+riOZHgJb4sklyV3UjRZiX\nRPeT87E/JJOBHrMWfDW410NToQfBGUbe5G5fYMK9RQxKQAnyqOjsNGX3U6j+\nGiG9\r\n=iY4u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHg8FekYqvLkrX1566FIuSegKbQ20ixHmbu1vzMWOZUOAiABU3WBXOFrcg+E7F2a3hVHvpmlMWYN8K4qic5g6VZuFg=="}]},"_npmUser":{"name":"byte-this","email":"bytethisstore@gmail.com"},"directories":{},"maintainers":[{"name":"byte-this","email":"bytethisstore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-templator_1.0.4_1626923301107_0.2492995415857886"},"_hasShrinkwrap":false},"1.0.5":{"name":"@byte-this/email-templator","version":"1.0.5","description":"Typescript API to facilitate email markup generation and help deal with bad email clients.","main":"public-api.js","types":"public-api.d.ts","scripts":{"test":"jest","test:coverage":"jest --coverage && jest-coverage-badges","format":"npx prettier --write .","build":"node build-cli.js build","publish:npm":"node build-cli.js publish"},"repository":{"type":"git","url":"git+https://github.com/ByteThisStore/email-templator.git"},"keywords":["email","markup","template"],"author":{"name":"Byte This!"},"license":"ISC","bugs":{"url":"https://github.com/ByteThisStore/email-templator/issues"},"homepage":"https://github.com/ByteThisStore/email-templator#readme","devDependencies":{"@types/jest":"^26.0.23","cpy-cli":"^3.1.1","jest":"^26.6.3","jest-coverage-badges":"^1.1.2","prettier":"^2.3.0","ts-jest":"^26.5.6","ts-node":"^9.1.1","typescript":"^4.2.4"},"gitHead":"cbf5856246dd2de52a15500db1a9352d3e8c588a","_id":"@byte-this/email-templator@1.0.5","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-abdOuvFTUNZLcj7rgz6tBINgZl+lbBOmA4YRR/tDUXVzZGoXs6iOuGUwLO4qJ0I7pf+HXzykvjw8HbioLTZ7cg==","shasum":"4853aa4772a387eaeb6be8057edb8d99a68f0fae","tarball":"https://registry.npmjs.org/@byte-this/email-templator/-/email-templator-1.0.5.tgz","fileCount":12,"unpackedSize":20363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnaSpCRA9TVsSAnZWagAAv+8QAJw6Ja0TFO4RPdMk5Uaq\nkajwv83yADQt0/wSH1g9Ar7dKOzdZqjX58Kk22+W9H/+ohy73k+DbPz7BDYF\nsk18aV3GbGKkazAHhZEs13VN7cOsE2HZRjrIX27EG1wZPCCHcNAzskSVA5iE\nr0T02QQxXRFVo1jZx/PzYZTniR5+/kefnVJ2sgTREB/74iH2KQMAfS+cHGHe\np70CQziT8c66qJBZTyIbMjVFmunG/jI33JplTskjrEC21TLf6FHWwTocDzZD\nHM9+Nmr/Fpe7Lq9V3zj1O0keHQceBoe1KLdEbrEO2mDxN3bVli37BkPnmIiu\n4Wthlizbq526CaN/cng87qj0f+wHtTl0t5i/L0rHQ6DWgRX+kp7XXewQ2Sd1\nKV3pQThb2yJNzAYyCDhqdK3ninatuAtbMP70tjL6DW307aj8Ga6326x/gidz\nB4UyzlqdIddo9Y+2ooj3jXYzOpyf6krnERX0HhhDbCryxauGdQ9aCc9PEzt6\nMS45HVY8K+k5RgO8Jx8roQAA3pNMSakRf5LU2DTR246o/6ZyozEOK+qYJQ7n\nrEku61ll5WKPk/B13xtMEtOJNPgsWt9nUlIYIBPza0t4XfGsB3jCVpnZO0eC\n1QHFmBBG1bQd9jCUy5E8F+Ho7QN0xCS9Mbbe4xlRb8mah/xahjykpudQ1NAV\n3vdl\r\n=POxC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/6HBn+j61qO57Gza/uMLk+TuZwx2sx82nt3naljut8gIgHkqZ/co/sukCr2eIQFm5ACrlNy2XqQ0Vkk62SfvEW3E="}]},"_npmUser":{"name":"byte-this","email":"bytethisstore@gmail.com"},"directories":{},"maintainers":[{"name":"byte-this","email":"bytethisstore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-templator_1.0.5_1637721257459_0.3579410651205326"},"_hasShrinkwrap":false},"1.0.6":{"name":"@byte-this/email-templator","version":"1.0.6","description":"Typescript API to facilitate email markup generation and help deal with bad email clients.","main":"public-api.js","types":"public-api.d.ts","type":"module","scripts":{"test":"jest","test:coverage":"jest --coverage && jest-coverage-badges","format":"npx prettier --write .","build":"node build-cli.js build","publish:npm":"node build-cli.js publish"},"repository":{"type":"git","url":"git+https://github.com/ByteThisStore/email-templator.git"},"keywords":["email","markup","template"],"author":{"name":"Byte This!"},"license":"ISC","bugs":{"url":"https://github.com/ByteThisStore/email-templator/issues"},"homepage":"https://github.com/ByteThisStore/email-templator#readme","devDependencies":{"@types/jest":"^26.0.23","cpy-cli":"^3.1.1","jest":"^26.6.3","jest-coverage-badges":"^1.1.2","prettier":"^2.3.0","ts-jest":"^26.5.6","ts-node":"^9.1.1","typescript":"^4.2.4"},"gitHead":"63ca3911bba3258e4e65a31639ec62c9b1f5345c","_id":"@byte-this/email-templator@1.0.6","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-Uy2k+nzR+jbp3l2GLX0zmTKzJGVvFpvb7tRDo4iYBni/B010JwYfd7o66gSzaMNXA2o3OSKrQ4TbMY7ZkucyQA==","shasum":"434b997b35e86e1045c9c77ebcc947c4b1f731c1","tarball":"https://registry.npmjs.org/@byte-this/email-templator/-/email-templator-1.0.6.tgz","fileCount":12,"unpackedSize":20385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhndyNCRA9TVsSAnZWagAAQUQP/RoZznLcHnSRk96ekRVo\nqFDJe73i8fp+nA7H0bD2YqUc67xx/8IGiDgNOvc1rND1Lyb/N2y1bYFixxyW\nSgmcFp5CrdtMGv0igeMcsY+niSiFiibtp3IpU7xGJ3tAD7pKAsQY+KlsMHm3\nYL6c2l023pShVrqpRDyzjj9mzM0yfMF4lLdT5oBgK/JcinSrSOf+qVz+zcc0\n5HvcB3FZ1XjSdcU9pPnxSkQ1w07aMVo5er4hA+FevHt62zHMMyWHMBVWWLSr\nGt9UIAUEp2/+A6HbrHTQJyXdq1y6HdoHIDDBsc7mO/so88KZgh7kB3hZcdUr\noFhLS32Cf49aUy9IjlWoLbLWLzYm6MoHyi8cBjefBBxH3bgjS//4ffp4lNQs\n22iWFZTKZCIt2E33HmxQdrq6ZCYAnz0qcljZ8JFGoGIrKZ0KmnqxtIpbfhrD\nR64fAfhKHf2KablB514VqJ7prR9vJq8Y1+jMl7F5HB+xIdJ3kxy/z4ol/Zd6\n4b5B4dNht3DLTVELrjM0LkkjMNloyU/E3zXzqMuAmKeN5X1BvL9ydWi0i12P\nz8iv0qS5RGaKrciymHJU0QL2W/LL4lI4NTKhyOxvLMIEprRFz1csFhlsdYTy\nUV62nrcmuoFHMIFZKRObEuPwLJE0mAY1GQBok0Ty48zb44k/EmmWVdCKOwsG\n9gos\r\n=SOfM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUWYytoh5sWjBrSyxZLVT8txXsoaqDbb1HQvJiDwiCHgIhAIEZddt9INjwJmTmYFYNnaXxdTYuw3yrNve0VMtwnfYx"}]},"_npmUser":{"name":"byte-this","email":"bytethisstore@gmail.com"},"directories":{},"maintainers":[{"name":"byte-this","email":"bytethisstore@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-templator_1.0.6_1637735565253_0.4093413207334824"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-14T19:29:17.492Z","1.0.1":"2021-05-14T19:29:17.653Z","modified":"2022-04-04T21:20:34.344Z","1.0.2":"2021-05-14T19:32:52.408Z","1.0.3":"2021-05-14T19:50:04.435Z","1.0.4":"2021-07-22T03:08:21.448Z","1.0.5":"2021-11-24T02:34:17.637Z","1.0.6":"2021-11-24T06:32:45.371Z"},"maintainers":[{"name":"byte-this","email":"bytethisstore@gmail.com"}],"description":"Typescript API to facilitate email markup generation and help deal with bad email clients.","homepage":"https://github.com/ByteThisStore/email-templator#readme","keywords":["email","markup","template"],"repository":{"type":"git","url":"git+https://github.com/ByteThisStore/email-templator.git"},"author":{"name":"Byte This!"},"bugs":{"url":"https://github.com/ByteThisStore/email-templator/issues"},"license":"ISC","readme":"# email-templator\r\n![Coverage lines](./coverage/badge-lines.svg)\r\n![Coverage functions](./coverage/badge-functions.svg)\r\n![Coverage branches](./coverage/badge-branches.svg)\r\n![Coverage statements](./coverage/badge-statements.svg)\r\n\r\n**For details and info on how to use:** https://bytethisstore.com/articles/pg/email-templating\r\n\r\nAn api which makes email markup generation a bit easier to deal with. Creating email html is a but cumbersome, as email clients haved mixed support for certain styling attributes, especially more modern ones.\r\n\r\nThis email-templator:\r\n* interpolates values based on input dictionary, similar to Angular interpolation syntax\r\n* process and interpolate css style declarations to inline them for each element\r\n* give console warnings for potentially problematic css style rules\r\n\r\n## Install\r\nLibrary with typescript definitions available as npm package.\r\n```\r\nnpm install @byte-this/email-templator\r\n```\r\n\r\n## How To Use\r\nYou will need two or three of the following:\r\n1. Email html template\r\n2. Dictionary of styles\r\n3. Dictionary of other interpolation values\r\n\r\nThe styles and interpolation values will be denoted as {{ <key name> }}, similar to Angular interpolation (note that this is not an Angular library and does not support directives, templates, etc).\r\n\r\nThe following is an example:\r\n```javascript\r\n/**\r\n * Here is some basic markup to be sent as a greeting to a new user.\r\n * \r\n * Notice that we have some interpolation going on:\r\n * --> #main-header, personFullName, .excited-greeting, #websiteUrl\r\n */ \r\nconst markup = `\r\n<h1 {{#main-header}}>Hello, {{personFullName}}</h1>\r\n<p {{.excited-greeting}}>\r\n    Thanks for joining our system!\r\n</p>\r\n<p>\r\n    We look forward to seeing you on our website at {{websiteUrl}}\r\n</p>\r\n<p {{.excited-greeting}}>\r\n    See you soon!\r\n</p>\r\n`;\r\n\r\n/**\r\n * This is a key value representation of the style names vs rules\r\n * By convention, it looks very similar to an actual css style definition\r\n */ \r\nconst styles = {\r\n    '#main-header': `\r\n        color: purple;\r\n        font-weight: bold;\r\n    `,\r\n    '.excited-greeting': `\r\n        width: 700px;\r\n        border-color: 1px sold black;\r\n    `\r\n};\r\n\r\n//a simple dictionary of values to insert\r\nconst values = {\r\n    personFullName: \"Brandon Dixon\",\r\n    websiteUrl: \"www.bytethisstore.com\"\r\n};\r\n\r\n//Now let's create the full body template\r\nconst emailTemplator = new EmailTemplator();\r\nconst generatedMarkup = emailTemplator.generateMarkup(markup, styles, values);\r\n```\r\n\r\nThe response will look something like this:\r\n```html\r\n<h1  style=\"color: purple; font-weight: bold;\" >Hello, Brandon Dixon</h1>\r\n<p  style=\"width: 700px; border-color: 1px sold black;\" width=\"700\" >\r\n    Thanks for joining our system!\r\n</p>\r\n<p>\r\n    We look forward to seeing you on our website at www.bytethisstore.com\r\n</p>\r\n<p  style=\"width: 700px; border-color: 1px sold black;\" width=\"700\" >\r\n    See you soon!\r\n</p>\r\n```\r\n\r\n## Diving into the Details\r\nIn the javascript example above, I've created a styles object where the key/value pairs look very similar to how css is normally declared. I've also added \".\" and \"#\" in front of what would normally be a class vs an identifier. That is not enforced by the API, but I consider it to be a useful convention and recommend anyone who uses this library to follow that convention. The values are a simple key/value pair representing values which need to be interpolated.\r\n\r\nThe output contains all interpolations of values, plus styles wrapped in a \"style=\" tag. Width and height are also extracted into their own properties when they are represented in terms of \"px\".\r\n\r\n## Notes on Styles\r\nWhen using the style interpolation, any element which will have this style interpolation cannot have any additional \"style\" tags declared in the markup. It can have other class specifications / styles which are declared in a separate part of the html template. A single html element can only have one style interpolation for a similar reason.\r\n\r\n## Note on Security\r\nThis library does not offer any HTML sanitation. If you are inserting any dynamic markup / data which has not been cleansed, be sure to pass the data through some library before passing it in here.\r\n","readmeFilename":"readme.md"}