Buffer with transparent 1x1 gif image

npm install empty-gif
1 downloads in the last week
7 downloads in the last month

empty gif module

This is equivalent for nginx empty_gif module, it allows you to return minimal transparent gif 1x1. You may need it if you don't want to show results, but simply want to count request without errors on client.


npm install empty-gif


Module exposes buffer with empty gif so you may do whatever you want. Usually you want to write that buffer to http response.

var gif = require("empty-gif"),
    fs  = require("fs");

fs.writeFile("empty.gif", gif);


npm loves you