Skip to content

BIE64

Latest
Compare
Choose a tag to compare
@cryptosbyte cryptosbyte released this 23 Aug 19:15
0822d79

Image Buffer -> Base64

This program returns a Base64 encoding of an image buffer (from either the web or local file) as STDOUT (a standard output), meaning that you can run the file and use whatever it logs/outputs.

Help Menu

  • -h <url> sends a http get request to the url and returns Base64 encoding of the image
  • --http <url> same as above
  • -r <path/to/file> fs module reads file and returns Base64 encoding of the image
  • --readFile <path/to/file> same as above

How To Build

Install all of the modules...

$ npm install

Compile the TypeScript source code into Commonjs, create executables and store them locally...

$ npm run build