
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@fal-works/chokidar-incremental
Advanced tools
Wrapper around chokidar for incremental build process.
Might be useful for cases where you'd like to set callbacks depending on the result of the initial run, e.g. calling any rebuild
function, which is derived from the initial build
, for each file change.
It also displays the time taken to execute the onStart
/onChange
callback.
import { watch } from "@fal-works/chokidar-incremental";
watch(paths, onStart, options);
paths
: Glob pattern(s), just like chokidar.watch()
.
onStart
(async): Called once when ready.
Should return onChange
(async) and onExit
(optional).
options
(optional):
onStartMessage
: message factory for onStart
.onChangeMessage
: message factory for onChange
.chokidarOptions
: options for the original chokidar API.See type declaration for details.
Looks like this:
Initial run > Done. (17 ms)
Watching files for changes...
Changed src\setup.ts > Done. (10 ms)
Changed src\setup.ts > Done. (13 ms)
Changed src\main.ts > Done. (14 ms)
Stop watching.
FAQs
Wrapper around chokidar for incremental build process.
We found that @fal-works/chokidar-incremental demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.