FIND YOUR NEXT FEW LINES
The snippet library.
Small, practical examples. Search by task or narrow things down below.
5 snippets foundClear filters
Format a date without locale ambiguity
Parse an ISO date and format it consistently.
date✓ Tested
Parse JSON into an object
Access a named field in a JSON document.
JSON✓ Tested
Read rows from CSV text
Parse CSV into objects with named properties.
CSV✓ Tested
Replace repeated whitespace
Normalize runs of whitespace to one space.
regex✓ Tested
Serialize a hashtable as JSON
Produce compact JSON for a small data object.
JSON✓ Tested