fs 文件系统


稳定性: 2 - 稳定

源代码: lib/fs.js

fs 模块能够以标准 POSIX 函数为模型的方式与文件系统进行交互。

const fs = require('fs');

Stability: 2 - Stable

Source Code: lib/fs.js

The fs module enables interacting with the file system in a way modeled on standard POSIX functions.

To use this module:

const fs = require('fs');

All file system operations have synchronous, callback, and promise-based forms.