We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 60b27de + 6dd16e5 commit b33a70eCopy full SHA for b33a70e
bindings.js
@@ -7,7 +7,8 @@ var fs = require('fs')
7
, path = require('path')
8
, join = path.join
9
, dirname = path.dirname
10
- , exists = fs.existsSync || path.existsSync
+ , exists = ((fs.accessSync && function (path) { try { fs.accessSync(path); } catch (e) { return false; } return true; })
11
+ || fs.existsSync || path.existsSync)
12
, defaults = {
13
arrow: process.env.NODE_BINDINGS_ARROW || ' → '
14
, compiled: process.env.NODE_BINDINGS_COMPILED_DIR || 'compiled'
0 commit comments