exif-async

Get EXIF data from JPG files using async/await functions or promises.


Keywords
exif, jpg
License
MIT
Install
npm install exif-async@1.0.6

Documentation

exif-async

Get EXIF data from JPG files using async/await functions or promises. A node.js wrapper around exif module.

Installation

npm i -D exif-async

Usage

Import (or require) default function

import getExif from 'exif-async';

use async/await

(async () => {
  try {
    const exif = await getExif('./photo_exif.jpg');
    console.log(exif);
  } catch (err) {
    console.log(err);
  }
})();

or promises

getExif('./photo_exif.jpg')
  .then((exif) => { console.log(exif); })
  .catch((err) => { console.log(err); });

License

MIT