Results for “one-off”
Small, practical examples. Search by task or narrow things down below.
Replace a text file with an atomic rename
Prepare new content beside the target before renaming it into place.
atomic write✓ Tested
Replace an object signal immutably
Replace an object signal immutably with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Replace repeated whitespace
Normalize runs of whitespace to one space.
regex✓ Tested
Replace text with parameter expansion
Bash Scripts: Replace text with parameter expansion with a small standalone Bash program.
Bash Scripts✓ Tested
Replace the first match
Find and replace one literal substring in C++.
C++✓ Tested
Report partial success from multiple actions
Report partial success from multiple actions with a small React component and explicit browser behavior.
React✓ Tested
Require a minimum text length
Require a minimum text length with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Require numeric values on a chosen step
HTML: The step interval is measured from the minimum value when one is provided.
HTML✓ Tested
Rerun an effect when its dependency changes
Rerun an effect when its dependency changes with a small React component and explicit browser behavior.
React✓ Tested
Reset a nonnullable control to its initial value
Reset a nonnullable control to its initial value with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Reset a template-driven form
Reset a template-driven form with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Reset controlled form state
Reset controlled form state with a small React component and explicit browser behavior.
React✓ Tested