volleyball-dev-frontend/node_modules/canvas/util/win_jpeg_lookup.js
Marc Wieland 33181acf83
Some checks are pending
Deploy Volleyball CMS / deploy (push) Waiting to run
Last
2025-06-02 18:56:22 +02:00

22 lines
360 B
JavaScript

const fs = require('fs')
const paths = ['C:/libjpeg-turbo']
if (process.arch === 'x64') {
paths.unshift('C:/libjpeg-turbo64')
}
paths.forEach(function (path) {
if (exists(path)) {
process.stdout.write(path)
process.exit()
}
})
function exists (path) {
try {
return fs.lstatSync(path).isDirectory()
} catch (e) {
return false
}
}