1.1.0 • Published 8 years ago

@ouranos/exif v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

exif

NPM Package Build Status Coverage Status Commitizen friendly Dependencies

Parses EXIF data from JPEG and NEF files.

Usage

yarn add @ouranos/exif

Node

const fs = require('fs')
const parse = require('@ouranos/exif')
const metadata = parse(fs.readFileSync('./myfile.jpg'))
console.log(metadata)
/*
  {
    make: 'NIKON CORPORATION',
    width: 1498,
    createdAt: new Date('2017-03-16T02:25:25.000Z'),
    ...,
    _raw: {
      Make: 'NIKON CORPORATION',
      ImageWidth: 1498,
      DateTimeOriginal: '2017:03:16 02:25:25',
      ...
    }
  }
*/