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.
require('constants')
fsctl
1 parent 872e17e commit fbe3756Copy full SHA for fbe3756
index.js
@@ -1,19 +1,12 @@
1
const RandomAccessStorage = require('random-access-storage')
2
const fs = require('fs')
3
const path = require('path')
4
-const constants = fs.constants || require('constants') // eslint-disable-line n/no-deprecated-api
+const constants = fs.constants
5
6
let fsext = null
7
try {
8
fsext = require('fs-native-extensions')
9
-} catch {
10
- try { // tmp workaround for places where fsctl is bundled...
11
- fsext = {
12
- tryLock: require('fsctl').lock,
13
- sparse: () => Promise.resolve()
14
- }
15
- } catch {}
16
-}
+} catch {}
17
18
const RDWR = constants.O_RDWR
19
const RDONLY = constants.O_RDONLY
0 commit comments