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

whatsapp-secretary

v0.1.1

Published

Tell your whatsapp secretary to just let you know about what's important for you.

Downloads

9

Readme

Whatsapp-secretary

Tell your whatsapp secretary to just let you know about what's important for you.

Note: This is very much a work in progress. It may not work as expected.

Build Status

Why

As a developer, I'm working too many hours with a text editor and several terminal sessions. In Europe, but specially in Spain, whatsapp is a very popular application, a must have, basically because all of your friends and relatives have it. It becomes very annoying to be interrupted every minute for some friend who has to tell you something not actually important and do not even say anything about all those group chats conversation popping up whatsapp notifications like mushrooms every 10 seconds to just end up reading nonsenses. It may be better to just disable notifications on your phone and you are done, yeah, but then you have no way to know when something you are really interesting on has been said, and it also requires a mind context switch from your keyboard to the phone similar to what happens when using keyboard and mice, so with whatsapp-secretary you just need to have a look at your terminal session and do not need to be looking at or enabling/disabling notifications on your phone since whenever you start using whatsapp-secreatary, notifications will stop coming in your phone and will start coming in once you stop whatsapp-secretary.

Setting up

npm install whatsapp-secretary --global

Now create a config.json file as below:

{
    
    "PHONE_NUMBER_1": {

      "//": "For phone number 1, just let me know about messages containing word1 or word2",
      "only": ["word1", "word2"]

    },

    "PHONE_NUMBER_N": {
    
      "//": "For phone number N, just let me know about messages not containing word1 or word2",
      "ignore": ["word1", "word2"]

    },

    "GROUP_ID_1": {

      "//": "Same as for phone number 1, but for a group",
      "only": ["word1", "word2"]

    },
    
    "GROUP_ID_N": {
      
      "//": "Same as for phone number N, but for a group",
      "ignore": ["word1", "word2"]
    
    },
    
    "//": "For the rest of phones and groups, let me know everything. Otherwise, remove line below and no message 
    will be reported back from the rest of phones and groups"
    
    "*": "*"
}

And finally just run it:

whatsapp-secretary -c config.json

Developers

To build the project, just make any change you need and then run:

$ npm run bundle

Make it sure you added some test suites into the test folder before bundling. To run your test, include it in the test/index.js file and then run it:

$ npm run test

Finally, if you want to locally test the npm package before publishing it into your private npm registry, just run:

$ npm run deploy