Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools,doc: add support for several flavors of JS code snippets #37162

Merged
merged 1 commit into from Mar 6, 2021

Commits on Mar 6, 2021

  1. tools,doc: add support for several flavors of JS code snippets

    Enable code example using both modern ESM syntax and legacy CJS syntax.
    It adds a toggle on the web interface to let users switch from one
    JavaScript flavor to the other.
    
    PR-URL: nodejs#37162
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Rich Trott <rtrott@gmail.com>
    Reviewed-By: Michaël Zasso <targos@protonmail.com>
    aduh95 committed Mar 6, 2021
    Copy the full SHA
    2e1e74e View commit details
    Browse the repository at this point in the history