fsconstantsWOK
fsconstantsWOK is a cross-platform library that provides a portable set of filesystem-related constants and flags used in file I/O operations. It aggregates values from POSIX and Windows interfaces into a single API, allowing developers to write platform-agnostic code that interacts with the underlying filesystem.
Its primary purpose is to standardize constants such as open modes (for example O_RDONLY, O_WRONLY, O_RDWR, O_CREAT,
Platform support for fsconstantsWOK covers major operating systems typically targeted by Node.js-style environments, including Linux, macOS,
Example usage (in a Node.js-like context): const fsconstantsWOK = require('fsconstantsWOK'); const fs = require('fs'); const fd = fs.openSync('example.txt', fsconstantsWOK.O_RDONLY
See also: Node.js fs.constants, POSIX file mode bits, Win32 file attributes.