Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 9, 2024 via pnpm

gaze 1.1.3

A globbing fs.watch wrapper built from the best parts of other fine watch libs.
Package summary
Share
0
issues
2
licenses
7
MIT
7
ISC
Package created
4 Oct 2012
Version published
21 May 2018
Maintainers
3
Total deps
14
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
balanced-match@1.0.2
brace-expansion@1.1.11
concat-map@0.0.1
gaze@1.1.3
globule@1.3.4
lodash@4.17.21
path-is-absolute@1.0.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
fs.realpath@1.0.0
glob@7.1.7
inflight@1.0.6
inherits@2.0.4
minimatch@3.0.8
once@1.4.0
wrappy@1.0.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of gaze 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
globule1.3.45.09 kBMIT
prod

Visualizations

Frequently Asked Questions

What does gaze do?

Gaze is an npm package built as a globbing fs.watch wrapper using the best parts of various other watch libraries. It's utilized to monitor changes in all .js files/dirs in the current working directory (process.cwd()). Through Gaze, you can perform various actions when a file is changed, added or deleted.

How do you use gaze?

Utilizing Gaze in your JavaScript code is quite straightforward. First, install the module using npm install gaze or place it into your package.json and run npm install. The example code usage of Gaze is as follows:

var gaze = require('gaze');

gaze('**/*.js', function(err, watcher) {
  // Various actions on file changed, added, or deleted
  this.on('all', function(event, filepath) {
    console.log(filepath + ' was ' + event);
  });
});

Gaze also accepts an array of patterns, allowing for the addition of more patterns to be watched at a later stage.

gaze(['stylesheets/*.css', 'images/**/*.png'], function() {
  // Add more patterns later to be watched
  this.add(['js/*.js']);
});

Where are the gaze docs?

The documentation for Gaze provides in-depth information about the npm package's functionalities. You will find detailed explanations about properties, emitted events, methods, etc., of Gaze in the documentation. More specifically, you can learn about its class structure, method usage, and event handling by referencing the docs. If you need more information on glob patterns, refer to isaacs's minimatch. For the complete Gaze documentation, you should visit the official Gaze repository on GitHub at git+https://github.com/shama/gaze.git.