UNPKG

node-libcurl-ja3

Version:

Node.js native bindings for libcurl-impersonate. Impersonate Chrome, Edge, Firefox and Safari TLS fingerprints.

20 lines (16 loc) 548 B
// Proudly copied from https://github.com/nodegit/nodegit/blob/977251b4aae52eef75cf4f188b4d5a63ba98fa7b/utils/buildFlags.js const fs = require('fs') const path = require('path') let isGitRepo try { fs.statSync(path.resolve(__dirname, '..', '..', '.git')) isGitRepo = true } catch (e) { isGitRepo = false } module.exports = { debugBuild: !!process.env.BUILD_DEBUG, isGitRepo, mustBuild: !!(isGitRepo || process.env.BUILD_DEBUG || process.env.BUILD_ONLY), skipCleanup: process.env.NODE_LIBCURL_POSTINSTALL_SKIP_CLEANUP === 'true', }