Skip to content

docs: add CommonJS basic example to README#3359

Open
Hashim1999164 wants to merge 1 commit into
redis:masterfrom
Hashim1999164:docs/readme-commonjs-basic-example
Open

docs: add CommonJS basic example to README#3359
Hashim1999164 wants to merge 1 commit into
redis:masterfrom
Hashim1999164:docs/readme-commonjs-basic-example

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 22, 2026

Copy link
Copy Markdown

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.
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

1 participant