Identifies World Files (e.g., .gfw, .jgw, .j2w, .pgw, .tfw, and .wld)
const isWorldFile = require("is-wld");
const { readFileSync } = require("fs");
const text = readFileSync("example.wld", 'utf-8');
const valid = isWorldFile(text);
// true
const isWorldFile = require("is-wld");
const valid = isWorldFile('https://somefakeurlhere.com/example.pgw');
// true
Identifies World Files in the following formats:
- ArrayBuffer
- Buffer
- DataView
- String
- Uint8Array
https://en.wikipedia.org/wiki/World_file
Post an issue at http://github.com/danieljdufour/is-wld/issues or email the author at daniel.j.dufour@gmail.com