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

exec-notify

v0.1.3

Published

Utility to execute a command and get a notification regarding the completion status.

Downloads

2

Readme

exec-notifier

This is a command line utility to execute commands and get a feedback notification on the exit status of the notification of the command.

Install

In order to install this utility, you need Node.js. To install it globally, execute the following command:

npm install -g exec-notify

Usage

To use this command, simply time node-exec command. If the command returns with a normal exit code, a success notification will pop-up in your screen:

exec-notify echo Success! # -> Success notification

However, if the command fails for some reason, you will receive a failure notification:

exec-notify "echo Failure... && false" # -> Failure notification

Using with your project

Suppose you are developing a Node.js application and you want to get a notification when your deploy is completed. You can use exec-notify in an npm script so that you get a notification of your deploy with a success or error message.

In order to do this, install exec-notify as a development dependency in your project (so whoever clones the source code can get notifications as well)

npm install --save-dev exec-notify

The, include a new entry in the scripts session of your package.json.

"scripts": {
	"deploy": "exec-notify echo Deploying app",
	// ...
},

Afterwards, you will get a notification whenever you run npm run deploy.

Supported Systems

This package uses the excellent Node Notifier. So theorically, Windows, GNU-Linux and Mac OS X are supported. In case you have problems, open an issue so I can take a look.

Credits

Thanks to: