Sha256: 0208905f53bda93670e98e3ee145ad9f87469d9375001f7f913c99b8ef25c228
Contents?: true
Size: 349 Bytes
Versions: 33
Compression:
Stored size: 349 Bytes
Contents
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', }
Version data entries
33 entries across 33 versions & 1 rubygems