🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@bleed-believer/entropy-watch

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bleed-believer/entropy-watch

Minimal, multiplatform and deterministic file watcher

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

@bleed-believer/entropy-watch

Installation

npm i --save @bleed-believer/entropy-watch

Example

import { EntropyWatch } from '@bleed-believer/entropy-watch';

const watch = new EntropyWatch('./**/*.{ts,js}');
watch.on('created', paths => console.log('created:', paths));
watch.on('updated', paths => console.log('updated:', paths));
watch.on('deleted', paths => console.log('deleted:', paths));

process.once('SIGINT', () => {
    watch.stop();
});

await watch.start();

Options

  • exclude string[]: Glob patterns to exclude form the search (available from Node v23 and up).

  • interval number: Polling rate in milliseconds, if not defined, the library uses 50ms.

  • hashlength string: The hashing algorithm, sha512 as default. See here for details.

  • hashAlgorithm number: The hash length (for shake256 algorithm).

Keywords

fs

FAQs

Package last updated on 14 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts