hex-gif

1.0.1 • Public • Published

Hex-GIF

Creates a tiny 1x1 pixel GIF from a hexadecimal color. This is nice because you don't have to use any native libraries that understand different image encodings, but hacky because it operates directly on the raw bytes.

Usage

const hexGif = require("hex-gif");
 
hexGif("#ff00ff"); // => Buffer <...>

This outputs abuffer for a 1x1 pixel magenta GIF.

Install

With npm installed, run

npm install hex-gif

License

AGPL-3.0

Readme

Keywords

Package Sidebar

Install

npm i hex-gif

Weekly Downloads

1

Version

1.0.1

License

AGPL-3.0

Unpacked Size

2.38 kB

Total Files

4

Last publish

Collaborators

  • christianbundy