Conditionally run different React hooks at runtime with a clean and safe API that follows the Rules of Hooks.
React component and hook which listens to the beforeunload window event.
Performant, flexible and extensible forms library for React Hooks
asynchronous before/error/after hooks for internal functionality
GitHub REST API client for Node.js
React Hook Form validation resolvers: Yup, Joi, Superstruct, Zod, Vest, Class Validator, io-ts, Nope, computed-types, TypeBox, arktype, Typanion, Effect-TS and VineJS
Conditional-get middleware for lws
Conditional formatting model, commands, and calculation support for Univer Sheets.
Module to hook into the Node.js require function
Preset for conditional formatting in Univer Sheets.
Conditionally require a React proptype based on other props and/or other conditions.
Intercept imports in Node.js
hast utility to check if a node is a conditional comment
Conditional formatting UI for Univer Sheets.
Conditional GET support for koa
Allow to enable/disable each function with an expression
Easy conditional if-else logic for your Cypress tests
A React hook for focusing elements and their children conditionally.
Hooks for require, vm and script used in istanbul
Run some code when the process exits
Event Emitting and Middleware Hooks
Write claude code hooks with type safety
PostgreSQL interface for Node.js
Add context awareness to your apps and frameworks by safely evaluating user-defined conditional expressions. Useful for evaluating expressions in config files, prompts, key bindings, completions, templates, and many other user cases.
A composable middleware stack that supports lambda and class-based middleware, named entries with insert-before/after and removal, conditional guards, error handling, middleware groups, before/after/around hooks, per-middleware timeouts, and profiling.
Trigger code through a series of hooks and run code in loops and through conditions.
SafeMemoize is a production-ready, zero-dependency memoization library for Ruby. It uses Ruby's prepend mechanism to wrap methods with a thread-safe cache (Mutex + double-check locking) that correctly handles nil and false return values — fixing the silent bug in the common ||= pattern. Results are cached per unique argument combination, so parameterized methods only compute each variant once. Additional features include TTL expiration, LRU cache size limiting, conditional caching via if:/unless: predicates, lifecycle hooks for hit/eviction/expiration events, per-instance metrics (hit rate, miss rate, computation time), targeted cache invalidation, custom cache key generators, and introspection helpers. Method visibility (public, protected, private) is fully preserved.