Last active
April 1, 2021 01:25
-
-
Save mesquka/e240b6d12a6216f76e1cfe3ff7145d5a to your computer and use it in GitHub Desktop.
Reads file and prints as hex string in a single line of JS (NodeJS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(require('fs').readFileSync(process.argv[2]).toString('hex')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: