redis / node-redis

Redis Node.js client
https://redis.js.org/
MIT License
16.8k stars 1.87k forks source link

Make Basic example from the README runnable in CommonJS environment #2378

Open uglide opened 1 year ago

uglide commented 1 year ago

The basic example in the README makes many assumptions about user environment and skills like a proper type field set in the closest package.json, or the user has copy-pasted the example to a file with .mjs extension.

In most cases, users will face the following problems:

Environment:

chayim commented 1 year ago

@leibale @shacharPash Can you guys pair on this?

RenatoExpert commented 1 year ago

@uglide You mean to write a more complete code example or what?

pratik9333 commented 1 year ago

Can I work on this? @uglide