exif-async
v1.0.6
Published
Get EXIF data from JPG files using async/await functions or promises.
Downloads
17
Readme
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