🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

horseshoe-cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

horseshoe-cli

Command line interface for horseshoe mailer.

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

horseshoe command line interface

NPM

Build Status Dependency Status devDependency Status

âžś  horseshoe -h

Usage:

horseshoe [ <options> ] <email1> [ <email2> ... ]

Options:

-s  --subject     The message subject.
-x  --text        The plain text message body.
-m  --html        HTML content.
-t  --tmpl        Handlebars template.
-p  --tmplPath    Path to Handlebars template files.
-d  --data        Data to be used as context for Handlebars template.
-c  --conf        Path to config file. Default is $HOME/.horseshoe.json
-j  --json        Output in JSON format.
-n  --no-colors   Dont do output colouring.
-h  --help        Show this screen you are looking at.
-v  --version     Show horseshoe's version number.

Examples:

1. Send plain text email using options:

horseshoe -s "the subject" -x "simple text body" you@example.com

2. Send plain text email piping body into horseshoe:

echo "the body" | horseshoe -s "the subject" you@example.com

3. Send email using template passing data as argument:

horseshoe -s "the subject" -t "foo" -d '{"name":"Lupo"}' you@example.com

4. Pipe a JSON object with data to render template:

echo '{"name":"Lupo"}' | horseshoe -s "the subject" -t foo you@example.com

5. Pipe a JSON array of messages into horseshoe's stdin:

(Assume each message object has the following properties: to, subject,
and either template and data or text or html)

cat messages.json | horseshoe

Bitdeli Badge

Keywords

horseshoe

FAQs

Package last updated on 25 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts