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

git-status-monitor

v0.2.4

Published

Monitors a git repo for changes via git status & notifies you when changes show up via email. Useful for monitoring files for unexpected changes in production.

Downloads

10

Readme

Git Status Monitor

Monitors a git repo for changes via git status & notifies you when changes show up via email. Useful for monitoring files for unexpected changes in production.

NOTE: This application should be called from a scheduling application such as cron. By itself it will only run once.

Installation

npm install -g git-status-monitor

Usage

git-status-monitor $folder_to_watch $files_to_watch $notify_email_to $notify_email_from $project_name
  • folder_to_watch: The directory the git repo you wish to monitor is in.
  • files_to_watch: A comma-delimited list of files you wish to be alerted to that have changed. The files are relative to the project root. To watch the entire repo, set this to $. To watch entire subdirectories, use the folder name with an asterisk (Example: www/*).
  • notify_email_to: A comma-delimited list of email addresses that are to receive the alert that the file has changed.
  • notify_email_from: The email address the alert should come from.
  • project_name: The name of the project. This is used in the alert message.

Example Usage (Basic)

git-status-monitor /var/www/wp_site .htaccess,wp-config.php [email protected],[email protected] [email protected] "My WP Site"

Example Usage (Entire Repo)

git-status-monitor /var/www/wp_site $ [email protected],[email protected] [email protected] "My WP Site"

Example Usage (One File & Sub Directory)

git-status-monitor /var/www/wp_site .htaccess,wp-content/* [email protected],[email protected] [email protected] "My WP Site"

Change Log

[0.2.4] - 2015-07-05

Fixed

  • Fixed an issue where on some systems the application could not locate the email templates folder.

[0.2.3] - 2015-06-30

Added

  • CHANGELOG.md

Changed

  • README.md (Added CHANGELOG & License)
  • Version number skipped a few to sync up repo version & NPM (my mistake).

[0.2.0] - 2015-06-30

Added

  • Now has the ability to watch the entire repo.
  • Now has the ability to watch sub directories.
  • Now notifies you if the repo is missing or deleted.

Fixed

  • The "git status" command needed an update to be correct.
  • Fixed an issue where the email sent did not include the files that triggered the alert at the top.
  • Now checks to see if nothing has changed.

[0.1.0] - 2015-06-29

Added

  • Initial Project Upload

License

Git Status Monitor is released under the MIT License.