newsletter-cli

所属分类:代码编辑器
开发工具:TypeScript
文件大小:92KB
下载次数:0
上传日期:2023-01-07 04:00:38
上 传 者sh-1993
说明:  在降价中编写新闻稿,并使用AWS SES从您的机器发送给许多收件人
(Write newsletters in Markdown and send to many recipients from your machine using AWS SES)

文件列表:
.prettierrc (96, 2021-03-18)
.travis.yml (79, 2021-03-18)
LICENSE (1082, 2021-03-18)
demo.svg (131246, 2021-03-18)
jest.config.js (71, 2021-03-18)
package-lock.json (245934, 2021-03-18)
package.json (1919, 2021-03-18)
src (0, 2021-03-18)
src\index.js (63, 2021-03-18)
src\lib (0, 2021-03-18)
src\lib\Newsletter.ts (2483, 2021-03-18)
src\lib\Recipient.ts (652, 2021-03-18)
src\lib\Recipients.ts (835, 2021-03-18)
src\lib\SendResult.ts (1125, 2021-03-18)
src\lib\Sender.ts (1835, 2021-03-18)
src\lib\SesTransport.ts (3135, 2021-03-18)
src\lib\UserConfig.ts (2154, 2021-03-18)
src\lib\commands (0, 2021-03-18)
src\lib\commands\EditCommand.ts (377, 2021-03-18)
src\lib\commands\ExistingNewsletterCommand.ts (431, 2021-03-18)
src\lib\commands\PrepareCommand.ts (1067, 2021-03-18)
src\lib\commands\PreviewCommand.ts (826, 2021-03-18)
src\lib\commands\SendCommand.ts (3189, 2021-03-18)
src\lib\index.ts (4765, 2021-03-18)
src\test (0, 2021-03-18)
src\test\index.test.ts (252, 2021-03-18)
src\test\lib (0, 2021-03-18)
src\test\lib\Recipients.test.ts (2702, 2021-03-18)
src\test\lib\Sender.test.ts (3421, 2021-03-18)
src\test\lib\__snapshots__ (0, 2021-03-18)
src\test\lib\__snapshots__\Recipients.test.ts.snap (259, 2021-03-18)
src\test\lib\__snapshots__\Sender.test.ts.snap (2432, 2021-03-18)
src\test\lib\commands (0, 2021-03-18)
src\test\lib\commands\SendCommand.test.ts (369, 2021-03-18)
tsconfig.json (401, 2021-03-18)
tslint.json (237, 2021-03-18)
user-config.sample.js (1041, 2021-03-18)
... ...

newsletter-cli npm

newsletter cli demo

Write newsletters in Markdown and send to many recipients from your machine using AWS SES.

## Features **Markdown** for writing the content **Styling** using CSS (automatically *inlined*) Ҭ **Send** using AWS SES respecting rate limits ## Prerequisites Prepare your AWS SES account and configure access to AWS on your machine: - https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sign-up-for-aws.html - https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/setup-credentials.html ## Getting Started ```sh npm i newsletter-cli -g ``` - Step 1: Run `newsletter prepare` to get started. Follow the command's instructions. - Step 2: Run `newsletter edit ` to open the prepared markdown file for the newsletter using an editor. Write your newsletter! - Step 3: Run `newsletter preview ` to preview the resulting HTML of your newsletter in a web-browser. - Step 4: Run `newsletter send ` to send the newsletter in bulks respecting the send rate of AWS SES. ## Parameters - `` is the internal name for your newsletter (alphanumerical characters and `-`, `_` only). The newsletter name defines the name of the local file where the newsletter source is stored. is stored as .md - `` is the path to a file containing recipients of the newsletter. The file must be comma-separated (,) and must contain column headers in the first row. The column named 'email' must be present in the file - `` is the email address which will appear as the sender of the newsletter. ## Using variables in the template You can use variables in the templates as supported by [AWS SES](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-personalized-email-api.html). The variables can be used in the subject and inside the body: ``` --- subject: Hi {{name}}! Subject of your awesome newsletter! --- Hi {{name}}! Here goes the text of your awesome newsletter! ``` In the snippet above, the `name` column is required for all recipients in the CSV file. Unfortunately, if the template rendering fails, AWS SES does not return an error. To detect rendering errors, you will need to subscribe to build an async recovery mechanism as described [here](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-personalized-email-api.html). The reasons why template rendering can fail: - missing variables - typos in variable names - invalid template expressions The CLI tries to validate as much as possible but it's still recommended to set up a recovery mechanism for the rendering failures. ## User configuration file An optional user configuration file can be placed at `${HOME}/.newsletter-cli/config.js`, which allows certain customizations. The [sample user configuration](user-config.sample.js) is commented with the possible customizations. ## Get Help [Open an issue](https://github.com/orkon/newsletter-cli/issues)

近期下载者

相关文件


收藏者