Skip to content

Conversation

@thisisjofrank
Copy link
Collaborator

@thisisjofrank thisisjofrank commented Oct 24, 2025

Updating as per @littledivy's feedback in #2684

  • Added: Quick start

  • Added: First-class package.json support

  • Reordered: Node.js global objects earlier

  • Simplified: CommonJS intro and troubleshooting

  • Added: .cjs run example (deno run -A main.cjs)

  • Added: node_modules mode decision guide

  • Removed: npx analogy snippet

  • Renamed: Deno 1.X-specific node_modules subsection

  • Compressed: Migrating and Optional improvements

  • Content refocused on tasks and outcomes

  • Duplicates removed and legacy bits trimmed

  • Headings and structure tightened

@littledivy please feel free to edit/remove details as you see fit!

@thisisjofrank thisisjofrank marked this pull request as ready for review October 24, 2025 11:55
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! A quick start section is nice

Comment on lines +37 to +40
### Import an npm package

```ts title="main.ts"
import chalk from "npm:chalk@5";
Copy link
Member

@bartlomieju bartlomieju Oct 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I honestly feel we should limit number of examples using npm: specifiers in the docs website and should prefer deno install npm:chalk and then import chalk from "chalk"; so it's as familiar as possible to people coming from Node

@thisisjofrank thisisjofrank merged commit 53c3acf into main Nov 6, 2025
2 checks passed
@thisisjofrank thisisjofrank deleted the node-page-updates branch November 6, 2025 18:38
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.

4 participants