How to unpack an .asar file?

From the asar documentation (the use of npx here is to avoid to install the asar tool globally with npm install -g asar) Extract the whole archive: npx asar extract app.asar <destfolder> Extract a particular file: npx asar extract-file app.asar main.js