exif-async

1.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i exif-async

Weekly Downloads

1

Version

1.0.6

License

MIT

Last publish

Collaborators

  • jacek.wasowski