<commit_before>unexpected-exif
===============

EXIF data plugin for the [Unexpected](https://unexpectedjs.github.io/) assertion library (version 7+ required). Uses the [exif-parser](https://github.com/bwindels/exif-parser) module to do most of the work.

[![NPM version](https://badge.fury.io/js/unexpected-exif.svg)](http://badge.fury.io/js/unexpected-exif)
[![Build Status](https://travis-ci.org/unexpectedjs/unexpected-exif.svg?branch=master)](https://travis-ci.org/unexpectedjs/unexpected-exif)
[![Coverage Status](https://coveralls.io/repos/unexpectedjs/unexpected-exif/badge.svg)](https://coveralls.io/r/unexpectedjs/unexpected-exif)
[![Dependency Status](https://david-dm.org/unexpectedjs/unexpected-exif.svg)](https://david-dm.org/unexpectedjs/unexpected-exif)

The image can be specified either as a string (file name) or as a Buffer instance.

```js
it('should have the correct EXIF data', function () {
    return expect('foo.jpg', 'to be an image whose EXIF data satisfies', {<commit_msg>README: Corrected example for 2.0.0<commit_after>unexpected-exif
===============

EXIF data plugin for the [Unexpected](https://unexpectedjs.github.io/) assertion library (version 7+ required). Uses the [exif-parser](https://github.com/bwindels/exif-parser) module to do most of the work.

[![NPM version](https://badge.fury.io/js/unexpected-exif.svg)](http://badge.fury.io/js/unexpected-exif)
[![Build Status](https://travis-ci.org/unexpectedjs/unexpected-exif.svg?branch=master)](https://travis-ci.org/unexpectedjs/unexpected-exif)
[![Coverage Status](https://coveralls.io/repos/unexpectedjs/unexpected-exif/badge.svg)](https://coveralls.io/r/unexpectedjs/unexpected-exif)
[![Dependency Status](https://david-dm.org/unexpectedjs/unexpected-exif.svg)](https://david-dm.org/unexpectedjs/unexpected-exif)

The image can be specified either as a string (file name) or as a Buffer instance.

```js
it('should have the correct EXIF data', function () {
    return expect('foo.jpg', 'to have EXIF data satisfying', {
{'fraction_non_alphanumeric': 0.1754473161033797, 'fraction_numerical': 0.002485089463220676, 'mean_word_length': 5.493548387096774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2668152', 'n_tokens_mistral': 687, 'n_tokens_neox': 668, 'n_words': 129}