# easy-exif

> tiny EXIF reader in WebAssembly

Latest version **0.1.0** (published 2019-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install easy-exif
pnpm add easy-exif
yarn add easy-exif
bun add easy-exif
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-09-26 |
| First published | 2019-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 54.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tuan Anh Tran |
| Maintainers | tuananh |

## Links

- npm: https://www.npmjs.com/package/easy-exif
- npm.io page: https://npm.io/package/easy-exif

## Recent versions

- 0.1.0 (latest) — 2019-09-26

## README

easy-exif
=========

Tiny [EXIF](https://en.wikipedia.org/wiki/Exif) reader for Node.js in WebAssembly.

## Installation

```sh
npm install easy-exif
```

## Usage

```js
const { exif } = require('easy-exif')
const fs = require('fs').promises

const buf = await fs.readFileSync('./samples/crosa.jpg')
console.log(await exif(buf)
```

Sample output

```json
{
  "make": "DJI",
  "model": "FC6520",
  "software": "v01.02.1504",
  "bitsPerSample": 0,
  "imageWidth": 1320,
  "imageHeight": 742,
  "imageDescription": "DCIM\\100MEDIA\\DJI_0001.JPG",
  "orientation": 1,
  "copyright": "",
  "dateTime": "2017:09:07 13:26:14",
  "dateTimeOriginal": "2017:09:07 13:26:14",
  "dateTimeDigitized": "2017:09:07 13:26:14",
  "subSecTimeOriginal": "",
  "exposureTime": 0.005,
  "fStop": 4,
  "exposureProgram": 1,
  "isoSpeedRatings": 100,
  "subjectDistance": 0,
  "exposureBiasValue": 0,
  "flash": 0,
  "flashReturnedLight": 0,
  "flashMode": 0,
  "meteringMode": 2,
  "focalLength": 15,
  "focalLengthIn35mm": 30,
  "geoLocation": {
    "latitude": -25.92544627777778,
    "latDegrees": 25,
    "latMinutes": 55,
    "latSeconds": 31.6066,
    "latDirection": 83,
    "longitude": 153.00958197222224,
    "lonDegrees": 153,
    "lonMinutes": 0,
    "lonSeconds": 34.4951,
    "lonDirection": 69,
    "altitude": -42.8,
    "precisionDOP": 0
  },
  "lensInfo": {
    "focalLengthMin": 0,
    "focalLengthMax": 0,
    "fStopMin": 0,
    "fStopMax": 0,
    "lensMake": "UnKnown",
    "lensModel": "DJI MFT 15mm F1.7 ASPH ",
    "focalPlaneXResolution": 0,
    "focalPlaneYResolution": 0
  }
}
```

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