Initial commit
This commit is contained in:
21
node_modules/canvas/util/win_jpeg_lookup.js
generated
vendored
Normal file
21
node_modules/canvas/util/win_jpeg_lookup.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
var fs = require('fs')
|
||||
var 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user