Skip to content

docs: add CommonJS basic example to README - #3359

Merged
nkaradzhov merged 1 commit into
redis:masterfrom
Hashim1999164:docs/readme-commonjs-basic-example
Jul 23, 2026
Merged

nkaradzhov merged 1 commit into
redis:masterfrom
Hashim1999164:docs/readme-commonjs-basic-example

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds a CommonJS version of the basic README example so it runs with node example.js without "type": "module" or a .mjs extension.
  • Logs the retrieved value so a successful run is obvious.
  • Fixes a small duplicate-word typo ("the the") in the client readiness note.

Fixes #2378

Test plan

  • Skim the Basic Example section in the README rendered on GitHub
  • Optionally run the CommonJS snippet against a local Redis on port 6379

Make the getting-started example runnable without ESM setup, and fix a
duplicate word in the client readiness note. Fixes redis#2378.
@nkaradzhov
nkaradzhov merged commit 3036c96 into redis:master Jul 23, 2026
2 checks passed
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.

Make Basic example from the README runnable in CommonJS environment

2 participants