| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add documentation for importing debug using ESM syntax with the import statement. Includes examples for both JavaScript and TypeScript usage. Fixes debug-js#1019
| Back | FazBrowse Home | New Git URL |
Summary
Adds documentation for using debug with ESM (ECMAScript Modules) import syntax.
Problem
The README currently only shows CommonJS require() examples. As noted in #1019, many modern projects use ESM with import/export syntax, and users may run into issues (like #1001) when they don't know how to properly import the module.
Solution
Added a new "ESM (ECMAScript Modules)" section to the README with clear examples:
Example from the new documentation
Fixes #1019