v1.0.0
coerce-form-data
Zero-dependency form data coercion using web standard APIs.
Converts raw form values (strings from HTML forms or FormData objects) into properly typed JavaScript values (numbers, booleans, dates, etc.) and back again.
Highlights
- Zero dependencies — uses only web standard APIs
- Full TypeScript support with strict typing
- ESM and CommonJS builds
- Reversible coercion — form strings to typed values and typed values back to form strings
- Supports
string,number,boolean,date, andenumfield types - Works with web standard
FormDataand plain objects - Handles
optionalandnullablefields
What's Changed
- Add CI workflow by @danielweinmann in #1
Full Changelog: https://github.com/seasonedcc/coerce-form-data/commits/v1.0.0