Re-organize directory structure

This commit is contained in:
Nemo 2021-07-18 17:26:38 +05:30
parent 5ee877fdf3
commit 1c72d60761
13 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
# which-electron ![](https://img.shields.io/badge/Status-Beta-orange) ![npm](https://img.shields.io/npm/v/which-electron) ![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/which-electron) ![NPM](https://img.shields.io/npm/l/which-electron) # which-electron ![](https://img.shields.io/badge/Status-Beta-orange) ![npm](https://img.shields.io/npm/v/which-electron) ![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/which-electron) ![NPM](https://img.shields.io/npm/l/which-electron)
Try to find out which Electron version is bundled inside an application. Find out which Electron version is bundled inside an application.
## Usage ## Usage
@ -33,7 +33,7 @@ We attempt multiple pathways:
4. A lookup table of [hashes from various electron releases](https://github.com/captn3m0/electron-fingerprints/) is used to guess the version. In case of multiple matches, it returns a range of versions. 4. A lookup table of [hashes from various electron releases](https://github.com/captn3m0/electron-fingerprints/) is used to guess the version. In case of multiple matches, it returns a range of versions.
5. Get the electron version from the electron binary (WIP) 5. Get the electron version from the electron binary (WIP)
Note that this can be run against untrusted binaries as it does not _try to run the application_. It has been tested against various file formats: zip/dmg/exe/AppImage/tar.gz etc. It extracts limited files using 7-zip. Note that this can be run against untrusted binaries as it does not _try to run the application_. It has been tested against various file formats: zip/dmg/exe/AppImage/tar.gz etc. It extracts limited files using 7-zip to a temporary directory at runtime if needed.
## Known Issues ## Known Issues

View File

@ -1,10 +1,10 @@
{ {
"name": "which-electron", "name": "which-electron",
"version": "1.0.0", "version": "1.0.1",
"description": "Guess which electron version is bundled in an application", "description": "Guess which electron version is bundled in an application",
"main": "index.js", "main": "src/index.js",
"bin": { "bin": {
"which-electron": "index.js" "which-electron": "src/index.js"
}, },
"scripts": { "scripts": {
"test": "kuta tests/*.js" "test": "kuta tests/*.js"

View File

View File

View File

@ -1,5 +1,5 @@
const test = require("kuta").test; const test = require("kuta").test;
const finder = require("../finder"); const finder = require("../src/finder");
const assert = require("assert"); const assert = require("assert");
const _ = require("./utils"); const _ = require("./utils");

View File

@ -1,5 +1,5 @@
const test = require("kuta").test; const test = require("kuta").test;
const fp = require("../fingerprint"); const fp = require("../src/fingerprint");
const assert = require("assert"); const assert = require("assert");
test("it should work with a single fingerprint", () => { test("it should work with a single fingerprint", () => {

View File

@ -1,5 +1,5 @@
const test = require('kuta').test; const test = require('kuta').test;
const os = require('../os') const os = require('../src/os')
const assert = require('assert') const assert = require('assert')
const _ = require('./utils') const _ = require('./utils')