Skip to main content
Watch config files with hasChanged polling or an inotify Watcher.

Modification time check

Watcher

Event helpers match otter-utils inotify: isModified, isDeleted, isCreated, isMoved, isIgnored.

Imports and multiple paths

When using loadWithImports, result.paths lists every file touched. Watch all of them or watch directories that contain imported fragments.

Thread safety

Parsers are not thread-safe on the same buffer. Load once per file, then share the resulting struct read-only across threads.