Skip to content

docs: update README examples to use ESM syntax#35

Merged
chenjiahan merged 1 commit intomainfrom
codex/readme-esm-examples
Mar 31, 2026
Merged

docs: update README examples to use ESM syntax#35
chenjiahan merged 1 commit intomainfrom
codex/readme-esm-examples

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

This PR updates the README examples to use ESM import syntax consistently across the documentation. It also fixes a few snippets so they better match current APIs, including express() usage, createServer, node:path's join, and devMiddleware.koaWrapper.

Testing

  • pnpm exec prettier --check README.md
  • pnpm exec cspell README.md

Related Links

  • None

@chenjiahan chenjiahan changed the title [codex] docs: update README examples to use ESM syntax docs: update README examples to use ESM syntax Mar 31, 2026
@chenjiahan chenjiahan marked this pull request as ready for review March 31, 2026 06:19
@chenjiahan chenjiahan merged commit b64e085 into main Mar 31, 2026
5 checks passed
@chenjiahan chenjiahan deleted the codex/readme-esm-examples branch March 31, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant