Focused category
Data
Nested object access, readonly wrappers, collection helpers, parsers, and cookies.
Choose by job
Category pages are quick routing pages for experienced developers.
Nest
Use Nest when your data is object-shaped, path-driven, or assembled from query strings, CLI args, or form payloads. Use ReadonlyNest when callers should only read. Use Re
Map
Use DataMap when you want native Map semantics with collection helpers. Use ReadonlyMap when a consumer should not mutate the store. Use map() when you want a callable ge
Set
Use DataSet when you want Set uniqueness with indexed read helpers and transformation methods. Use ReadonlySet when you want read-only access. Use set() when a callable i
Parsers
Adapters that write structured input into a Nest instance. ## Import ``ts import { ArgString, QueryString, FormData, PathString, FileData, Nest } from '@stackpress/lib';
cookie
Use cookie when you need a small dependency-free parser and serializer for request cookies and response Set-Cookie values.
Comparison table
| Primitive | Use when | Reference |
|---|---|---|
| Nest | Use Nest when your data is object-shaped, path-driven, or assembled from query strings, CLI args, or form payloads | Open reference |
| Map | Use DataMap when you want native Map semantics with collection helpers | Open reference |
| Set | Use DataSet when you want Set uniqueness with indexed read helpers and transformation methods | Open reference |
| Parsers | Adapters that write structured input into a Nest instance | Open reference |
| cookie | Use cookie when you need a small dependency-free parser and serializer for request cookies and response Set-Cookie values | Open reference |