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 🙏

© 2026 – Pkg Stats / Ryan Hefner

gmailx

v0.0.2

Published

Send email easily on the command line without running a server

Readme

gmailx

Send email easily on the command line without running a server

Installation

[sudo] npm install -g gmailx

Usage

This tool mimics the behavior of mailx but doesn't require any mail pickup programming running on the current host as it connects (by default) to Google's free anonymous SMTP server.

NOTE: by default, this can only send to gmail accounts!

$ cat message.txt
To: [email protected]
Subject: hello there!

This is a test!
$ cat message.txt | gmailx -t
message sent: 250 2.0.0 OK 1436563766 e109si12320482qgf.118 - gsmtp

If you specify a non-gmail address you will see

$ cat message.txt | gmailx -t
Can't send mail - all recipients were rejected
$ echo $?
1

You can alternatively construct everything on the command line, ie.

gmailx -a foo.pdf -S 'your document' [email protected] [email protected] <<-EOF
Attached is your pdf
EOF

And, optionally, specify an alternate server or authorization to use

$ cat config.json
{
  "service": "gmail",
  "auth": {
    "user": "[email protected]",
    "pass": "password"
  }
}
$ echo hi | gmailx -C config.json -s 'subject' [email protected]

See nodemailer for what can be specified in the config file

CLI Options

$ gmailx -h
Usage: gmailx [-c cc] [-b bcc] [-a attachment/file] to ...

Send email easily on the command line without running a server

options
  -a, --attachment <path>  filename to send as an attachment
  -b, --bcc <addr>         address to bcc to
  -c, --cc <addr>          address to cc to
  -C, --config <config>    JSON file to be passed to nodemailer.createTransport
  -d, --debug              turn on debugging information
  -h, --help               print this message and exit
  -r, --from <addr>        address to email from
  -s, --subject <line>     subject line to use
  -S, --header <foo=bar>   a raw header to specify
  -t, --raw-mode           specify To:, From:, Reply-To:, etc. over stdin
  -u, --updates            check for available updates
  -v, --version            print the version number and exit

License

MIT License