Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 391 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 391 Bytes

is-geotiff

Super Light and Fast Method for Checking if a TIFF is a GeoTIFF

install

npm install is-geotiff

usage

const fs = require("fs");
const isGeoTIFF = require("is-geotiff");

const buffer = fs.readFileSync("./example.tiff");

const { result } = isGeoTIFF({
    data: buffer,
    debug: false // set debug to true for increased logging
});
// result is true