Serialize
serialize a form to urlencoded string.
Install / Use
/learn @yields/SerializeREADME
serialize
serialize forms.
Installation
Install with component(1):
$ component install yields/serialize
Example
<input type='text' name='foo' value='baz'>
<input type='text' name='baz' value='foo'>
<select name='select'>
<option value='1'></option>
</select>
<script>
var el = document.forms[0];
assert('foo=baz&baz=foo&select=1' == serialize(el));
serialize.object(el);
// => { foo: "baz", baz: "foo", select: "1" }
</script>
License
MIT
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
