UNPKG

turbowatch

Version:

Extremely fast file change detector and task orchestrator for Node.js.

13 lines (9 loc) 294 B
/* eslint-disable canonical/filename-match-regex */ import { platform } from 'node:os'; import * as semver from 'semver'; const isMacOs = () => { return platform() === 'darwin'; }; export const isFSWatcherAvailable = () => { return semver.gte(process.version, '19.1.0') && isMacOs(); };