Skip to content

doc,crypto: import from 'node:crypto' instead of import('node:crypto') #45884

@marco-ippolito

Description

@marco-ippolito

Affected URL(s)

https://nodejs.org/api/crypto.html#crypto

Description of the problem

in the esm example of the first paragraph there is this import:
const { createHmac } = await import('node:crypto');
It seems weird, shouldn't be import { createHmac } from 'node:crypto': ?
If so I can open a PR to fix it

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions