15 lines
296 B
JavaScript
15 lines
296 B
JavaScript
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
const stats = fs.statSync(path.join(__dirname, '..', 'asar', 'a.asar'))
|
|
|
|
const details = {
|
|
isFile: stats.isFile(),
|
|
size: stats.size
|
|
}
|
|
|
|
if (process.send != null) {
|
|
process.send(details)
|
|
} else {
|
|
console.log(JSON.stringify(details))
|
|
}
|