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

agenia-gaze-cli

v0.2.0

Published

Command line interface for the gaze watcher

Downloads

1

Readme

gaze-cli

NPM

Dependency Status

CLI wrapper for the gaze file watcher. Watches files for changes, including renamed or new files, and runs a command. Can pass the filename into the command to prevent unnecessary work.

Install

npm install --save gaze-cli

Can also be installed globally.

Usage

Run gaze from your command line with a command and pattern.

See package.json for this module for an example of using gaze with npm scripts.

Run gaze --help for a full list of options.

$ gaze --help
Usage: gaze <command> <pattern> ...

If present, the string $path in <command> will be replaced by the full path to
the file that changed.

Options:
  --version        Show version number
  --help           Print this help message
  --silent         Do not print messages
  --ignore-rename  Ignore when a file is renamed

Examples:
  gaze "jshint $path" "lib/**/*.js"    Runs jshint when a js file in the lib folder changes
  gaze "jshint $path" "**/*.js" "!node_modules/**/*"    Runs jshint when any js file that is not in node_modules changes

Tips

Internally Gaze tries to use native OS events. This will only work if the number of files you are watching is less than the number of open file descriptors for your OS, otherwise it will attempt to use stat polling which often fails. You can check what this limit is with ulimit -n, if it's low you should increase it. If you get a RangeError or EMFILE error, this is probably the cause.

Versions

  • 0.2.0: Add support for multiple patterns and message showing watched file count
  • 0.1.0: Initial release

License

Copyright (c) 2015 Paul Rayes

Licensed under the MIT license

Contributing

Bug reports and pull requests are welcome. Code should follow the existing style and pass lint.

To run lint: npm run lint or npm run watch.