npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

echomail

v1.0.2

Published

echomail is a command line tool to send mails using Mandrill API. You will need a Mandrill account, create one here: https://mandrill.com

Downloads

30

Readme

echomail

echomail is a command line tool to send mails using Mandrill API. You will need a Mandrill account, create one here: https://mandrill.com

How to use

The following line will send a mail to [email protected] with the text "Hi!":

echo Hi! | echomail -k <Mandrill API Key> -t [email protected]

Or in a cronjob:

*/1 * * * * python /home/jinx/cpu-monitor.py | /usr/local/bin/echomail -k <Mandrill API Key> -t [email protected]

The command will return 0 on success and 1 on fail.

Flags

Flag | Short flag | Description | Required --- | --- | --- | --- --key | -k | Mandrill key | Yes --to | -t | Recipient mail address | Yes --to-name | N/A | Recipient name | No --from | N/A | Sender mail address | No --from-name | N/A | Sender name | No --subject | N/A | Mail subject | No --subject-prefix | N/A | Mail subject prefix | No --subject-max-length | N/A | Mail subject max length | No --allow-empty-message | N/A | Allow empty message body | No --help | -h | Show help | No --version | -v | Show version | No

Examples

echo Hi! | echomail -k XXXXXXXXXX -t [email protected] --subject MySubject
echo Hi! | echomail -k XXXXXXXXXX -t [email protected] --subject MySubject --from-name Source#1
echo Hi! | echomail -k XXXXXXXXXX -t [email protected] --subject-prefix MyTag

TODO

  • Flag: --debug
  • Comments in code