From ae7d1128b4928d4ba046a8391ebb41b0990da027 Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 16 Jul 2021 12:41:12 +0530 Subject: [PATCH] Add documentation on working --- README.md | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index be2052b..615e0df 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,28 @@ -# which-electron +# which-electron ![](https://img.shields.io/badge/Status-WIP-orange) -Try to find out which Electron version is bundled in an application file. +Try to find out which Electron version is bundled inside an application. -## how +## Usage -The script attempts to extract the `app.asar` file and get the electron version from the manifest there. +```shell +npm install which-electron +which-electron Google.Play.Music.Desktop.Player.OSX.zip +which-electron Google.Play.Music.Desktop.Player.OSX.dmg +which-electron Google.Play.Music.Desktop.Player.deb +``` -## supported files +## How does it work? -Currently supports: +We attempt multiple pathways: -1. Zip Files \ No newline at end of file +1. The presence of a `electron.asar` file denotes an electron version `