GitHub - niradler/fn-lifecycle: Control the before and after of running a function, can be used for validation, caching, data mutation and more.
Briefly

Control the before and after of running a function, can be used for validation, caching, data mutation and more.Features

Wraps functions to create a lifecycle of before and after
Supports TypeScript
Can be used for validation, caching, and more
Easy to use and integrate into existing projects
Provides a flexible and customizable solution for managing function lifecycles

Usage
check the tests folder for more complete examples.
Read at GitHub
[
add
]
[
|
|
]