0.2.4 • Published 3 years ago

bin2png v0.2.4

Weekly downloads
4
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

bin2png

For more information, please look at the project page.

Usage

To convert a file at the path file.bin to a png that will be created at the path encoded.png:

npx bin2png file.bin encoded.png

Programmatic API

(async) bin2png(data) → {Promise.<Uint8Array>}

Takes binary data in the form of an UInt8Array and returns binary data representing a valid PNG file containing the original data. The data can then be decoded with png2bin.

Parameters

  • data Uint8Array The raw input data to encode.

(async) encode_file(binFileName, pngFileName) → {Promise.<Uint8Array>}

Encodes a file with bin2png and saves the result in another file.

Parameters

  • binFileName string A path to an existing file to encode
  • pngFileName string A path to a file that will be created with the contents
0.2.4

3 years ago

0.2.3

3 years ago

0.2.1

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago