▸ About these cheatsheets
Two unrelated quick-references that happen to share the Rose Pine theme:
- TypeScript 6.0 — 23 sections from primitives through 5.x → 6.0 language features. Every section heading links to the corresponding chapter of the TypeScript Handbook; the "What's new" card has per-version links to each release-notes page (5.0 → 6.0). Verified live against npm at write time.
- curl — 16 sections of HTTP-stack recipes covering methods, headers, body forms, auth (Basic / Bearer / Digest / NTLM / SigV4 / .netrc), TLS / mTLS, proxies, retries & timing, cookies & sessions, parallel transfers, and non-HTTP protocols (FTP, SMTP, IMAP, WebSocket, MQTT).
Design principle
Surface-level reference material is everywhere. What's harder to find is reference material that also answers why — why is this option deprecated, what trap does this flag avoid. Each cheatsheet pairs a high-density quick-scan layout with inline notes, warnings, and links to canonical specs.
Mechanics
Both pages are fully responsive (1 / 2 / 3 columns by viewport), with a sticky table-of-contents bar on desktop and a hamburger drawer on mobile. They share styles.css + app.js (sibling files in this folder) — no build step, no framework, no dependencies. Print works fine too.
TS TypeScript 6.0 cheatsheet
23-section reference for modern TypeScript, with the version verified live from npm. Every section heading links directly to the corresponding chapter of the TypeScript Handbook.
- Primitives, objects, arrays, tuples, functions, generics, classes, modules
- Type vs interface comparison table
- Discriminated unions, conditional types, mapped types, template literal types
- All 20+ built-in utility types tabulated (
Partial,Pick,Omit,ReturnType,NoInfer, …) usingresource management, stage-3 decorators, async / Promise types- Strict tsconfig family + a Node 24 / TS 6 baseline config
- Version-by-version changelog with
5.0+/5.2+/5.5+feature tags inline, each linking to that release's notes page
curl curl cheatsheet
Comprehensive recipes for the URL-transfer swiss-army-knife — 16 sections covering everything from "show only response headers" to "send mail over SMTP+TLS." Every flag carries a brief inline comment so you don't need a second tab open.
- HTTP methods, headers (send / remove / override), body forms (JSON, urlencoded, multipart)
- Auth: Basic, Bearer, Digest, NTLM, Negotiate, AWS SigV4, .netrc
- TLS, mTLS, custom CA bundles, pinning, version pinning
- Proxies (HTTP / HTTPS / SOCKS5),
--resolve,--connect-to, Unix sockets - Retries, timeouts,
-wtiming variables, full timing breakdown recipe - Cookies, sessions, parallel transfers (
-Z), URL globbing - Non-HTTP protocols: FTP, SFTP, SMTP, IMAP, WebSocket, MQTT, LDAP
- Recipes: token-aware calls, health checks, OAuth2, GitHub API, TLS keylog capture
▸ How it's built
node-ts-test/ └── cheatsheets/ ├── cheatsheets-index.html ← you are here ├── typescript-cheatsheet.html ├── curl-cheatsheet.html ├── styles.css ← shared Rose Pine, responsive grid, burger menu └── app.js ← shared drawer toggle
- Each cheatsheet links
styles.cssandapp.js(same directory) - Only file-specific syntax-token colours stay inline (TS uses gold / iris / foam; curl uses love / gold / foam — overlapping class names so they have to remain per-file)
- Responsive 1 / 2 / 3-col grid driven by
@mediaat 760 px and 1200 px max-width: min(2400px, 96vw)lets cards fill ultrawide monitors without absurd line lengths- Mobile (< 760 px) gets a hamburger drawer with full ARIA states, scroll lock, Escape-to-close, viewport-resize auto-dismiss
▸ Further reading — TypeScript
- TypeScript Handbook typescriptlang.org The canonical learning resource. Start at Everyday Types if you're new; the cheatsheet links to specific chapters from every section heading.
- TypeScript release notes index typescriptlang.org Every version's changelog. The cheatsheet's "What's new" section links to 5.0 → 6.0 individually.
- tsconfig reference typescriptlang.org Every compiler option, searchable. The single most useful TS page in daily work.
-
Utility types reference
typescriptlang.org
Every built-in:
Partial,Pick,Omit,ReturnType,NoInfer, … - TypeScript on GitHub github.com The compiler's source, issue tracker, and wiki — including the "What's new" page that often gets updated before the handbook does.
▸ Further reading — curl
- curl manpage (online) curl.se Every flag, every option, every example. The cheatsheet covers the 95 % you'll reach for; the manpage covers the rest.
- curl documentation hub curl.se Tutorials, tooling docs (libcurl, curl-config), security notes, and the everything-curl book.
- Everything curl — the book curl.dev Free, online, comprehensive. Hundreds of pages on how curl and libcurl work. By Daniel Stenberg himself.
-
Local:
man curlterminal Always available, even offline. The cheatsheet is a useful 30-second scan layer on top.
▸ Tools & sandboxes
- TypeScript Playground typescriptlang.org Browser sandbox for trying things out. Type inspection, error messages, and JS emit side-by-side. Quick-try anything from the TS cheatsheet without opening a project.
-
httpbin.org
httpbin.org
Endpoints that echo back your request — great for poking at the curl examples without standing up a server.
/anything,/headers,/cookies,/delay/N, … - Reqbin reqbin.com Alternative request inspector / public test endpoints. Useful when httpbin is rate-limiting.
▸ Credits
- Theme: Rose Pine — palette by Emilia Dunfelt & contributors. Used in its "Main" variant with the standard role mapping (love, gold, rose, pine, foam, iris).
- Fonts: system UI sans for prose; JetBrains Mono / Fira Code / SF Mono / Menlo for code blocks.
- Validation: each cheatsheet was checked with Python's
html.parserfor unclosed tags.
.then chains to await.