Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 25, 2024 via pnpm

fsevents 2.3.2

Native Access to MacOS FSEvents
Package summary
Share
0
issues
1
license
1
MIT
Package created
6 Jul 2013
Version published
5 Feb 2021
Maintainers
2
Total deps
1
Direct deps
0
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
1 Packages, Including:
fsevents@2.3.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

0
All Dependencies CSV
β“˜ This is a list of fsevents 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does fsevents do?

FSEvents is a package that provides native access to MacOS FSEvents in Node.js. FSEvents API in MacOS allows applications to register for notifications of changes to a directory tree. This makes it a very fast and efficient alternative to kqueue. Its primary function is to track and notify about changes in the file system, making it essential for applications that require real-time updates on such changes. Although it's a low-level library, it's utilized by higher-level, cross-platform file watching modules, such as Chokidar.

How do you use fsevents?

To use FSEvents, first, install the package using npm with the command npm install fsevents. Note that it supports Node.js v8.16 and above. Sample code to use the FSEvents package is as follows:

const fsevents = require('fsevents');

// To start observation
const stop = fsevents.watch(__dirname, (path, flags, id) => {
  const info = fsevents.getInfo(path, flags);
});

// To end observation
stop();

In the above code, we require the FSEvents package and start watching a directory. Whenever the operating system detects a change in the file system, the callback function passed to the watch method is called. The stop function retrieved and stored is used to end the observation. Make sure to store this stop function, or the garbage collector might unregister the watcher, eventually causing your callbacks to stop being called.

Where are the fsevents docs?

The FSEvents documentation can be found within its GitHub repository. Here, you can access all the necessary resources, including usage instructions, a detailed breakdown of the API and its features, release notes, and troubleshooting tips. In addition to this, the NPM package page also provides detailed information about the package and its versions.