1.0.0 • Published 11 years ago

empty-gif v1.0.0

Weekly downloads
563
License
-
Repository
github
Last release
11 years ago

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.

Installation

npm install empty-gif

API

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);

Authors