$ npm install exiftool.pl
A distribution of exiftool perl executable with lib. Current version is 10.53.
You might also be interested in dist-exiftool which will install an appropriate version of exiftool depending on the platform, and exiftool.exe for Windows.
The module exports a path to the exiftool Perl executable.
const exec = require('child_process').execFile;
const exiftool = require('exiftool.pl');
execFile(exiftool, ['-j', 'image.jpg'], (error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
return;
}
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
});
Artistic License 2.0
© 2010 - cnpmjs.org x YWFE | Home | YWFE