image-validator-stream
Provides a transform stream to inspect the incoming header of an image to detemine if it's a valid image format.
Currently supports:
- jpg
- png
- gif (87a/89a)
Example
const fs = const path = const ImageValidatorStream = { const ext = path const ivs = ext: ext ivs const out = fs fs}
Installation
npm install image-validator-stream
License
Copyright © 2014 Todd Kennedy, Licensed under the MIT License