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

shark-mail

v0.2.2

Published

Simple filesystem-based mail client

Downloads

3

Readme

Shark Mail

The simple filesystem-based email client

Installation

npm install --global shark-mail

Configuration

Shark Mail relies on a simple filesystem configuration. The following folders need to exist before launching Shark Mail...

~/sharkm
~/sharkm/outbox
~/sharkm/outbox/archive

Here's a quick oneliner to create the filesystem structure...

cd && mkdir sharkm && mkdir sharkm/outbox && mkdir sharkm/outbox/archive

Shark Mail also requires a configuration file for a few things...

  1. Email credential configuration (the from email address)
  2. Address book list
module.exports = {
  sender: {
    host: "smtp.gmail.com",
    port: 465,
    secure: true,
    auth: {
      user: "[email protected]",
      pass: "password"
    }
  },
  addressBook: [
    { name: "Person1", email: "[email protected]" },
    { name: "Person2", email: "[email protected]" }
  ]
};

Currently the only supported provider is Gmail.

Receiving email

To receive email, you simply need to run...

sharkmail fetch

New emails that haven't been received and cached yet are created in ~/sharkm. A new file will be created for each email.

Sending email

Emails will be sent when you run...

sharkmail send

Emails that are sent will be in files in ~/sharkm/outbox with the file extension of *.email. All files that match ~/sharkm/outbox/*.email will attempt to be sent.

The file format for outbound emails is the following...

<email-address-or-address-book-name>
<email-subject>
<email-body>

In short, email address or address book name on line 1, email subject on line 2, and the rest of the file (lines 3+) is the message body.

:bulb: If you have a draft email that you don't want to accidentally send it's a good idea to have a different extension, such as *.email.draft and then remove draft when you're ready to send the email