We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fs.constants.F_OK
1 parent 8c673e7 commit 9f581a5Copy full SHA for 9f581a5
node_helper.js
@@ -103,7 +103,7 @@ module.exports = NodeHelper.create({
103
const configPath = this.getConfigPath();
104
this.thisConfig = {};
105
try {
106
- fs.accessSync(configPath, fs.F_OK);
+ fs.accessSync(configPath, fs.constants.F_OK);
107
const c = require(configPath);
108
const config = {...defaults, ...c};
109
this.configOnHd = config;
@@ -325,7 +325,7 @@ module.exports = NodeHelper.create({
325
const filename = path.resolve(`${modulePath}/${module.longname}.js`);
326
327
328
- fs.accessSync(filename, fs.F_OK);
+ fs.accessSync(filename, fs.constants.F_OK);
329
330
/* Defaults are stored when Module.register is called during require(filename); */
331
require(filename);
0 commit comments