Skip to content
Evergreen Evergreen
Documentation

Fs.F_OK, fs.R_OK, fs.W_OK and fs.X_OK have been removed

Removed. The source gives no day. Replacement: fs.constants or fs.promises.constants. Source: Node.js deprecations: DEP0176.

Check a version:

evergreen check pkg:generic/nodejs

Node.js removed fs.F_OK, fs.R_OK, fs.W_OK and fs.X_OK (DEP0176: documentation-only since v20.8.0, runtime deprecation since v24.0.0, end-of-life since v25.0.0).

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status Removed
Severity high
Ecosystem nodejs
Component pkg:generic/nodejs
Affected versions vers:semver/>=25.0.0
Date from the source The source gives no day
Replacement fs.constants or fs.promises.constants
Evidence last seen 2026-10-21
Reviewed 2026-10-21 by arminazimi
Review due 2027-10-21 (365 days after the last review)
Rule ID nodejs.symbol.fs.access-constants

Sources

Migration

Constraints

  • Keep the behavior of the code unchanged; check the replacement’s argument and return-value differences.

Steps

  1. Replace the usage. Replace each reported use of fs.F_OK, fs.R_OK, fs.W_OK and fs.X_OK with fs.constants or fs.promises.constants.

Verification

  • npm run test --if-present: Run the repository tests when defined.

Detected by

The npm detector. See Detectors and Compatibility.

Other versions of this product

Same ecosystem

Data

This page is generated from registry/nodejs.json, rule nodejs.symbol.fs.access-constants, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated