constants
Usage in Deno
import * as mod from "node:constants";
variable constants
Usage in Deno
import { constants } from "node:constants";
Deprecated
The node:constants module is deprecated. When requiring access to constants relevant to specific Node.js builtin modules, developers should instead refer to the constants property exposed by the relevant module. For instance, require('node:fs').constants and require('node:os').constants.
Type
node:os
& node:os
& node:os
& node:os
& node:fs
& node:crypto
variable default
Usage in Deno
import mod from "node:constants";
Deprecated
The node:constants module is deprecated. When requiring access to constants relevant to specific Node.js builtin modules, developers should instead refer to the constants property exposed by the relevant module. For instance, require('node:fs').constants and require('node:os').constants.
Type
node:os
& node:os
& node:os
& node:os
& node:fs
& node:crypto
© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/api/node/constants