Re-organize directory structure

pull/3/head
Nemo 1 year ago
parent 5ee877fdf3
commit 1c72d60761
  1. 4
      README.md
  2. 6
      package.json
  3. 0
      src/finder.js
  4. 0
      src/fingerprint.js
  5. 0
      src/index.js
  6. 0
      src/os.js
  7. 0
      src/utils.js
  8. 0
      src/version.js
  9. 0
      src/versions.json
  10. 0
      src/zip.js
  11. 2
      tests/finder.js
  12. 2
      tests/fingerprint.js
  13. 2
      tests/os.js

@ -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)
Try to find out which Electron version is bundled inside an application.
Find out which Electron version is bundled inside an application.
## 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.
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

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

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

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

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

Loading…
Cancel
Save