Skip to content

Feedback: /runtime/fundamentals/node/ - Needs Improvement #2684

@denobot

Description

@denobot

Documentation Feedback

Path: /runtime/fundamentals/node/
Helpful: No ❌

Feedback:
I think this page is overally very technical for the average user. It goes deep into "how Deno does things" instead of "how to do things with Deno". For example, it's not clear to me at first glace if I can run a .cjs file in Deno.

The Using npm packages section should mention first-class package.json support.

The CommonJS support section is a bit verbose. It would help a lot if the first sentence was: "Deno supports CommonJS modules by default" instead of "How we firmly support ESM". I would actually just delete the first para and keep "Use .cjs extension" as the first thing.

A simple deno -A main.cjs code block after the express example in the "Use .cjs extension" section would clarify my doubt about running .cjs.

I think the Node.js global objects section should be placed earlier in the page since it is the only section that shows how to use Node.js runtime APIs.

GitHub User: @littledivy


This issue was automatically created from the documentation feedback system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feedbackFeedback submitted via the Docs feedback componentneeds-improvementNegative Feedback

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions