wrap 'before' and 'after' funcitons.'before' can stop original function from executing.
Patch / extend / wrap / hook into class methods in a type-safe way
Reusable gift-wrap hook and service for Medusa storefronts. Manages per-line-item gift metadata (is_gift, gift_from, gift_to, gift_message) without any UI dependencies.
A React hook that fires a callback whenever ResizeObserver detects a change to its size
Wordwrap a string with ANSI escape codes
Wrap words to a specified length.
Helper to wrap functions inside a function call.
React bindings for the ChatKit Web Component.
Performant, flexible and extensible forms library for React Hooks
Wrap a controlled react component, to allow specific prop/handler pairs to be uncontrolled
A tiny and fast text wrap library which takes ANSI escapes into account.
asynchronous before/error/after hooks for internal functionality
Wrap words to a specified length.
Wrap those words. Show them at what columns to start and stop.
React Hook Form validation resolvers: Yup, Joi, Superstruct, Zod, Vest, Class Validator, io-ts, Nope, computed-types, TypeBox, arktype, Typanion, Effect-TS and VineJS
Module to hook into the Node.js require function
PostCSS plugin to replace overflow-wrap with word-wrap or optionally retain both declarations.
Wrap all spawned Node.js child processes by adding environs and arguments ahead of the main JavaScript file argument.
Component and hook for handling window and document object in iframe or ssr environment
visx tooltip
Intercept imports in Node.js
CLS using AsynWrap instead of async-listener - Node >= 4.7.0
Hooks for require, vm and script used in istanbul
Event Emitting and Middleware Hooks
Wraps rb_add_event_hook so you can write fast ruby event hook processors w/o the speed penalty that comes with set_trace_func (sooo sloooow!). Calls back into ruby so you don't have to write C. % ruby demo.rb # of iterations = 1000000 user system total real null_time 0.120000 0.000000 0.120000 ( 0.125279) ruby time 0.560000 0.000000 0.560000 ( 0.562834) event hook 3.160000 0.010000 3.170000 ( 3.175361) set_trace_func 34.530000 0.100000 34.630000 ( 34.942785)
Middleman-Sync is a Middleman extension that wraps the excellent AssetSync to allow for both a CLI and after_build hook to your Middleman build's
Extracted reusable OpenAI API client that wraps chat completions with sane defaults, logging hooks, and retry/backoff handling.
Displays a collection (ActiveRelation or Array-like object) wrapped in an html table with server side column sorting, filtering hooks, and search bar. Large collections can be paginated with either the will_paginate gem or kaminari gem if you use them, or a naive Enumerable based paginator (without pager links) if neither is present.
A generator for Backbone in Rails >= 3.1. The Language is javascript (no coffee) and the template engine is (only) handlebars wrapped in haml! However this generator takes advantage of hooks (brought by yehuda in rails 3) so it is easy to add other template engines and so on....
EasyOp wraps business logic in typed, composable operations. It keeps the Interactor mental model (shared ctx, fail!, hooks) while adding rescue_from, pluggable type adapters, and chainable result callbacks — all without requiring ActiveSupport.
DeprecateSoft is a lightweight Ruby gem that lets you gracefully deprecate methods in your codebase without breaking functionality. It wraps existing instance or class methods and lets you plug in custom before/after hooks for tracking usage via logging, Redis, DataDog, or any other observability tools. Once you verify in your tracking that a method is no longer called, you can remove it safely from your code base. This is especially useful in large codebases where you want to safely remove legacy methods, but first need insight into whether and where they're still being called. Hooks are configured once globally and apply project-wide. Fully compatible with Rails or plain Ruby applications.
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.