It's a link to code in this repo
|
const extract = ({ filePath, binary, os }) => { |
|
return new Promise(async (resolve, reject) => { // one indent |
|
const tmpPath = path.dirname(filePath); // two indents |
|
await unzip({ |
|
from: filePath, |
|
to: tmpPath, |
|
}); |
|
const installer = new Installer({ |
|
engine: binary, |
|
path: tmpPath, |
and a code block