Skip to content

Instantly share code, notes, and snippets.

@Deliaz
Last active April 8, 2019 05:24
Show Gist options
  • Save Deliaz/001cce8195143c2e785106d92ffefa7c to your computer and use it in GitHub Desktop.
Save Deliaz/001cce8195143c2e785106d92ffefa7c to your computer and use it in GitHub Desktop.
Shows versions of .CRX file (chromium extensions). Bash version.
#!/bin/bash
echo -n -e "File type:\t"
xxd -l 4 $1 | awk '{for(i=NF; i>3; --i) print $NF}'
echo -n -e "Version:\t"
xxd -l 1 -c 1 -ps -s 4 $1
@Deliaz
Copy link
Author

Deliaz commented Apr 8, 2019

Make it executable first:

chmod +x crxver.sh

Usage:

./crxver.sh my-extension.crx

Output:

File type:	Cr24
Version:	03

NodeJS versions of the script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment