# is-wld

> Identify World Files

Latest version **1.0.0** (published 2020-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-wld
pnpm add is-wld
yarn add is-wld
bun add is-wld
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-01-22 |
| First published | 2020-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daniel J. Dufour |
| Maintainers | danieljdufour |
| Keywords | wld, world-file, gfw, jgw, j2w, pgw, tfw, gis, imagery, satellite |

## Links

- npm: https://www.npmjs.com/package/is-wld
- Repository: https://github.com/DanielJDufour/is-wld
- Homepage: https://github.com/DanielJDufour/is-wld#readme
- Issues: https://github.com/DanielJDufour/is-wld/issues
- npm.io page: https://npm.io/package/is-wld

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-01-22

## README

# is-wld
Identifies World Files (e.g., .gfw, .jgw, .j2w, .pgw, .tfw, and .wld)

# usage
## checking contents of a file
```javascript
const isWorldFile = require("is-wld");
const { readFileSync } = require("fs");

const text = readFileSync("example.wld", 'utf-8');
const valid = isWorldFile(text);
// true
```

## checking a url
```javascript
const isWorldFile = require("is-wld");

const valid = isWorldFile('https://somefakeurlhere.com/example.pgw');
// true
```

# description
Identifies [World Files](https://en.wikipedia.org/wiki/World_file) in the following formats:
 - ArrayBuffer
 - Buffer
 - DataView
 - String
 - Uint8Array

# what is a world file?
https://en.wikipedia.org/wiki/World_file

# support
Post an issue at http://github.com/danieljdufour/is-wld/issues or email the author at daniel.j.dufour@gmail.com

---
_Source: https://npm.io/package/is-wld · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
