Exiftool2
Wrapper for efficiently working with
exiftool
.
I'd also recommend using exiftool-vendored!
Installation
npm install exiftool2 --save
Usage
; // Pass arguments to create an instance of `exiftool` parsing.// Default arguments: `-q -json`// Read more: http://linux.die.net/man/1/exiftoolconst exif = ; // The `exif` result is always an array of exif objects from `exiftool`.exif;exif; // Supports streaming into `exiftool`.const exif = ; // Remember you can close the connection early on exif data.exif; // Pipe directly into `exiftool` (E.g. over HTTP).; // Create an instance that defaults to `-stay_open`.// Identical to `exec`, except for the default arguments.// Default arguments: `-stay_open True -@ -`const exif = ; // Multiple `exif` events will emit in `open` mode.exif; // Push commands to `-execute`. Appends `-q -json` to each `send()` command.exif; // You also also stream with `-stay_open`.// Both `send` and `read` return a promise to resolve with exif data.exif; // Sends `-stay_open False`, causing `exiftool` to close.exif;
License
Apache 2.0