Sha256: fed1e14f4d3a650493666697889e77ebb3be6ccb6054e9f55197566d1cf0eea8

Contents?: true

Size: 448 Bytes

Versions: 120

Compression:

Stored size: 448 Bytes

Contents

const fs = require('fs')

const version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version
const versArr = version.replace(/^v/, '').split('.')
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12

const useNative = !hasNative ? () => false : opts => opts.mkdir === fs.mkdir
const useNativeSync = !hasNative ? () => false : opts => opts.mkdirSync === fs.mkdirSync

module.exports = {useNative, useNativeSync}

Version data entries

120 entries across 48 versions & 6 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/@npmcli/move-file/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.60 node_modules/tar/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.60 node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.59 node_modules/tar/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.59 node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.59 node_modules/@npmcli/move-file/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.58 node_modules/@npmcli/move-file/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.58 node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.58 node_modules/tar/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.57 node_modules/@npmcli/move-file/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.57 node_modules/tar/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.57 node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.56 node_modules/tar/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.56 node_modules/@npmcli/move-file/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.56 node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.55 node_modules/@npmcli/move-file/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.55 node_modules/tar/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.55 node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.54 node_modules/@npmcli/move-file/node_modules/mkdirp/lib/use-native.js
immosquare-cleaner-0.1.54 node_modules/node-gyp/node_modules/make-fetch-happen/node_modules/cacache/node_modules/mkdirp/lib/use-native.js