/
snap
/
node
/
11782
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
node-gyp
/
lib
/
/snap/node/11782/lib/node_modules/npm/node_modules/@npmcli/node-gyp/lib
mkdir
upload
Name
Size
Mode
Actions
index.js
349
0644
edit
dl
rm
Edit:
/snap/node/11782/lib/node_modules/npm/node_modules/@npmcli/node-gyp/lib/index.js
(349B)
const util = require('util') const fs = require('fs') const { stat } = fs.promises || { stat: util.promisify(fs.stat) } async function isNodeGypPackage (path) { return await stat(`${path}/binding.gyp`) .then(st => st.isFile()) .catch(() => false) } module.exports = { isNodeGypPackage, defaultGypInstallScript: 'node-gyp rebuild', }
Save
cmd:
run