Chapter III · 格式化与代码
格式化与代码.
格式化、压缩和转换 JSON, XML, YAML, CSV, SQL, regex——以及代码生成器、schema、框架、DevOps 和测试工具。
- Tools
- 122 工具
- Sections
- 10 sections
Offline
格式化和压缩13 tools
数据转换16 tools
代码生成器18 tools
JSON 到 TypeScript 接口JSON 到 C# 类JSON 到 Java POJOJSON 到 Python DataclassJSON 到 Go StructJSON 到 Kotlin Data ClassJSON 到 JSON SchemaXML 到 TypeScript 接口JSON 到 Rust StructJSON 到 PHP Class / DTOJSON 到 C++ StructJSON 到 Swift CodableJSON 到 Dart / Flutter ModelJSON 转 C# RecordJSON 转 Scala Case ClassJSON 转 Elixir StructJSON 转 Haskell Data TypeCSV 转 SQL INSERT 语句
框架与 UI16 tools
JSON 转 React Hook Form + ZodJSON 转 Next.js Server ActionJSON 转 Prisma Schema ModelJSON 转 Drizzle ORM SchemaJSON 转 TypeORM EntityJSON 转 Mongoose Schema + ModelJSON 转 tRPC RouterJSON 转 GraphQL Type + ResolverTailwind 配置生成器React 组件生成器CSS → Tailwind JIT 转换器shadcn/ui 组件生成器Next.js App Router 页面生成器SvelteKit 组件 + 页面生成器Vue 3 + Pinia Store 生成器Storybook Story 生成器
Schema 与 API9 tools
DevOps 与构建11 tools
文本与正则表达式20 tools
From the blog
Reading on this topic.
csv
CSV parsing is harder than you think (and why `split(',')` isn't enough)
Quoted fields, escaped quotes, embedded newlines, UTF-8 BOMs, Excel's opinions. A tour of every CSV footgun and the libraries that handle them.
json
NaN, null and undefined in JSON: what serialises to what
JSON has null. JavaScript has null, undefined and NaN. Python has None. This is the table of what survives each conversion — and the traps everyone hits.
5 min read
How to convert JSON to YAML (and back) without breaking things
JSON ↔ YAML looks simple until you hit anchors, multi-line strings, booleans that aren't booleans, and the Norway problem.
End of Chapter III
Next · Chapter IV编码与加密