{"_id":"@australis/send-grid-mail","_rev":"2-a2548917b8e7531964acb13c393c6d31","name":"@australis/send-grid-mail","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@australis/send-grid-mail","version":"0.1.0","description":"load env with dotenv based on NODE_ENV","private":false,"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"test":"jest --ci --env=node","build:templates":"tsc -p ./templates","build":"npm run build:templates && tsc -p .","clean":"rimraf lib","rebuild":"npm run clean && npm run build"},"keywords":[],"author":{"name":"daniel@australis-technica.com"},"license":"MIT","jest":{"globals":{"ts-jest":{"tsConfigFile":"tsconfig.test.json"}},"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/test/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"dependencies":{"@sendgrid/mail":"^6.3.1","react":"^16.4.1","react-dom":"^16.4.1"},"devDependencies":{"@types/jest":"^23.3.1","@types/react":"^16.4.7","@types/react-dom":"^16.0.6","jest":"22.4.3","rimraf":"^2.6.2","ts-jest":"22.4.4","ts-node":"^5.0.0","typescript":"2.9.2"},"directories":{"lib":"lib","test":"test"},"repository":{"type":"git","url":"git+https://github.com/australis-technica/load-env.git"},"bugs":{"url":"https://github.com/australis-technica/load-env/issues"},"homepage":"https://github.com/australis-technica/load-env#readme","gitHead":"31a3bbd9330e7c03221e252d74da8982da19d2cc","_id":"@australis/send-grid-mail@0.1.0","_npmVersion":"6.2.0","_nodeVersion":"10.1.0","_npmUser":{"name":"d10221","email":"danieliozzi@gmail.com"},"dist":{"integrity":"sha512-IO+51QdJGKia/mWdizCd4uTytpCfZCtSi+tqjdsg79Ysx/UZXsGnhrPkCyXPuzdGQ6poAHaiYh5MCAxk770MHg==","shasum":"2af65d73075f5e9e5944c8916e7fd8f2276f8fe1","tarball":"https://registry.npmjs.org/@australis/send-grid-mail/-/send-grid-mail-0.1.0.tgz","fileCount":12,"unpackedSize":7890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZIiACRA9TVsSAnZWagAAtsgP/2ZZCklAyM4qOLEJ/TUI\n+tzDiE0MC0plwUkrioRJ+pKPPDzKuzRDZKitaHvnG1CWTSC9xuFQgzrMSVfT\nTcRc/7NRyJbxqSqa1wOSyVd+9xj9fKaqs2LvV3R4Vh+QEulcKGchh/McTUzo\nbXQMpWH/e39ggV5ly5taZvmaC5LpH036QupJo3w2bW05LENZl9LOcM5fRw5x\n4Rjl4xAhiVLT1LKuL5Zszhw0TytqvdPpYsrXAqiHBZMqJ/ie/bGadxFOwyaW\nhvpvYlrdFYh/2gXT7qEsF4+APGv9/0aIIkUPcwsp/HI/bPE8oJq+ovxY7ePM\nn+2lBYl5T/XyRG2JHu00CFaEYjEmc0KRRhX9u3JHj4QnsRZyoUIltVJfZ9Ya\nQyfNtLAka66n74SBJPiPDOpMlQqbMh2B1HlGmgg8GrzaA4SUSWUoxbeou7T+\nQvap1haovQw3yd63lojPyWmHtlQAwweBtAO8rbqZHD/ozivGlehMO4pP7FRi\n03Lp7/a2k241HH4Uod+/UX/R2RtREMuCDyBtRRf61fdPGljCnZVrdxz1TRGD\n2e/Ptdw9ZYqXjaxJzdPz9IcQfhSn73WJEz8zfWUbZOc858xGpulOT+DcurAl\nc8U92Rd4/HsRP+RhL2MiNkBnRb0lP8Hb9TqLi0yvutbjqRWW+QFHdGX8zo/X\nH+jC\r\n=qTqy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZlzSbGKiPLnZsZSRISW78ScXP7dzao7oApl/msR2+TAiEAlbG2G39IpTYmUeyr76ORfBgrtqSXcF2pQKI2Y9D+unQ="}]},"maintainers":[{"name":"d10221","email":"danieliozzi@gmail.com"},{"name":"dzzi","email":"danieliozzi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/send-grid-mail_0.1.0_1533315199640_0.15773682656081012"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-03T16:53:19.248Z","0.1.0":"2018-08-03T16:53:19.720Z","modified":"2022-04-04T16:30:27.877Z"},"maintainers":[{"email":"danieliozzi@gmail.com","name":"d10221"}],"description":"load env with dotenv based on NODE_ENV","homepage":"https://github.com/australis-technica/load-env#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/australis-technica/load-env.git"},"author":{"name":"daniel@australis-technica.com"},"bugs":{"url":"https://github.com/australis-technica/load-env/issues"},"license":"MIT","readme":"utility to easy send mails rendered by react with send-grid from file templates from well known location\n\n--templates/*  \n\nInstall:\n\n    npm i @australis/send-grid-mail\n\ntest:\n\n    npm run build && npm test\n\nusage: \n\n    import { sendMail, renderTemplate } from \"@australis/send-grid-mail\";\n    /** \n     * change process.env.MAIL_TEMPLATES_PATH to find them somewhere else \n     * or pass an absoulte path to templateName\n     */\n    async function send(){\n        /** \"my_mail.js\" is waiting in cwd()/templates  */\n        const html = renderTemplate(/* templateName: */ \"my_mail\", { message: \"Hi!\" });\n        await sendMail({\n            to: \"my@mail.no\",\n            subject: \"Hi There\",\n            html\n        });\n    }","readmeFilename":"readme.md"}