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

list-mailcount

v1.0.8

Published

Simple cli tool to list all emails, group them by their domain and display the cumulated sum.

Downloads

3

Readme

list-mailcount

Simple cli tool to list all emails, group them by their domain and display the cumulated sum.

Use cases

  • Migrating to another email account and getting a simple checklist of important services you should adapt to your new email.
  • Simply know who sends you emails and how often. Does any service spam you? Do you want to get rid of some old accounts?

Usage

  • Install list-mailcount cli npm i -g list-mailcount
  • Create a configuration file imapconfig.json containing the required information to read your mails.
  • Run list-mailcount list-mailcount 🎉
  • An example output could be
  Done fetching all messages for: [email protected]
  Resulting mail map (sorted by count): Map(16) {
  'linkedin.com' => 28,
  'gmail.com' => 17,
  'JOIN.com' => 13,
  '1password.com' => 12,
  'quastor.org' => 11,
  'amazon.de' => 5,
  'npmjs.com' => 5,
  'youtube.com' => 4,
  'audible.de' => 3,
  'udemy.com' => 2,
  'expo.io' => 2,
  'paypal.de' => 1,
  'indeed.com' => 1,
  'deutschebahn.com' => 1,
  'airbnb.com' => 1,
  'medium.com' => 1,
}

imapconfig.json

  • The config matches the one required for the imap package.
  • It is suggested to use the default secure port 993 and using tls. An arbitrary example config would be:
[
  {
    "user": "[email protected]",
    "password": "thisIsThePasswordOfMyEmail",
    "host": "imap.example.com",
    "port": 993,
    "tls": true
  }
]
  • If you want to check the mails for multiple accounts, simply add another object to the array.