esbuild-os-notifier (v1.1.1) is a plugin for esbuild that triggers native OS notifications when builds finish, error, or warn. It wraps node-notifier to support macOS, Windows, and Linux. Allows customization of notification content, sound, timeout, and selective enabling of success/error/warning alerts. Currently stable with monthly releases. Differentiators: minimal config, built-in TypeScript types, and simple API compared to alternatives like esbuild-plugin-notify.
npm install esbuild-os-notifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes esbuild with the OS notifier plugin, triggering a desktop notification on build completion or failure.
Use separate esbuild hooks if you need result handling.
Pin node-notifier to v9 if needed, or test on your target systems.
Use the correct signature: esbuildOsNotifier(notificationOptions, eventOptions).
Wrap plugin conditionally with an environment check.
Use default import: import esbuildOsNotifier from 'esbuild-os-notifier'
Install it: npm install node-notifier
Use import esbuildOsNotifier from 'esbuild-os-notifier'