putt is a node.js module that lets you easily output text in lots of fun ways. It wraps a bunch of other libraries to make this as simple as possible.
var putt = ;;;
Supported output formats:
npm install putt
speak to work on Linux, install Festival and see what voices you have available (e.g.
desktop_notify to work, install:
sudo apt-get install libnotify-binor equivalent
All output types take an options hash (optional), e.g.:
All output types also have two optional callbacks that can be chained:
done()is called when the output finishes outputting
error(reason)is called when an error is encountered during output
Note that you can chain these method calls in any order:
voicethe voice to use when speaking.
See say.js docs for a full list of voices
titlethe title of the notification window
namethe name of the application
priority(integer) the priority of the notification (default is 0)
sticky(boolean) if notification should fade away or not
imagecustom image to show along with notification
See node-growl docs for more details
url(required) the URL to POST to
headersa hash of HTTP headers to be sent
See restler docs for more details
By default, email assumes that the sender is a Gmail user.
to(required) the recipient email address
subjectthe subject for the email
hostthe SMTP host
port(integer) the SMTP port
ssl(boolean) whether or not to use SSL
See nodemailer docs for more details
First, create a new Twitter application, and under the "Settings" tab, you will also want to give your app "Read and write" permissions so that we can write a tweet. Then, click the button at the bottom of the "Details" tab to generate an access token and secret.
Next, provide those keys and secrets to putt when you call it: