Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dist-exiftool

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dist-exiftool - npm Package Compare versions

Comparing version 10.33.1 to 10.53.0

21

package.json
{
"name": "dist-exiftool",
"version": "10.33.1",
"version": "10.53.0",
"description": "Platform-dependent distribution of exiftool.",

@@ -8,3 +8,3 @@ "main": "index.js",

"postinstall": "platform-dependent-modules",
"test": "mocha test"
"test": "cross-env ZOROASTER_TIMEOUT=10000 zoroaster test"
},

@@ -25,3 +25,4 @@ "repository": {

"devDependencies": {
"mocha": "3.0.2"
"cross-env": "5.0.0",
"zoroaster": "0.4.4"
},

@@ -32,4 +33,4 @@ "dependencies": {

"optionalDependencies": {
"exiftool.exe": "10.33",
"exiftool.pl": "10.33"
"exiftool.exe": "10.53",
"exiftool.pl": "10.53"
},

@@ -39,15 +40,15 @@ "config": {

"linux": [
"exiftool.pl@10.33"
"exiftool.pl@10.53"
],
"win32": [
"exiftool.exe@10.33"
"exiftool.exe@10.53"
],
"darwin": [
"exiftool.pl@10.33"
"exiftool.pl@10.53"
],
"freebsd": [
"exiftool.pl@10.33"
"exiftool.pl@10.53"
],
"sunos": [
"exiftool.pl@10.33"
"exiftool.pl@10.53"
]

@@ -54,0 +55,0 @@ }

@@ -5,3 +5,3 @@ # dist-exiftool

[exiftool.exe](https://www.npmjs.com/package/exiftool.exe) module.
Current version is 10.33.
Current version is 10.53.

@@ -16,4 +16,4 @@ [![npm version](https://badge.fury.io/js/dist-exiftool.svg)](https://badge.fury.io/js/dist-exiftool)

```js
const exec = require('child_process').execFile;
const exiftool = require('exiftool');
const execFile = require('child_process').execFile;
const exiftool = require('dist-exiftool');

@@ -20,0 +20,0 @@ execFile(exiftool, ['-j', 'image.jpg'], (error, stdout, stderr) => {

@@ -1,38 +0,41 @@

const path = require('path');
const execFile = require('child_process').execFile;
const assert = require('assert');
const exiftool = require('../index');
const path = require('path')
const execFile = require('child_process').execFile
const assert = require('assert')
const exiftool = require('../index')
describe('exiftool', function () {
this.timeout(5000);
it('should export a path to current executable', function () {
const exePath = path.join(__dirname, '../node_modules/exiftool.exe/vendor/exiftool.exe');
const plPath = path.join(__dirname, '../node_modules/exiftool.pl/vendor/exiftool');
if (process.platform === 'win32') {
assert.equal(exiftool, exePath);
} else {
assert.equal(exiftool, plPath);
}
});
it('should be able to run the executable', function (done) {
execFile(exiftool, ['-echo', 'test-out', '-echo2', 'test-err'], (err, stdout, stderr) => {
if (err) {
done(err);
return;
}
assert.equal(stdout.trim(), 'test-out');
assert.equal(stderr.trim(), 'test-err');
done();
});
});
it('should have version 10.33', function (done) {
execFile(exiftool, ['-ver'], (err, stdout, stderr) => {
if (err) {
done(err);
return;
}
assert.equal(stdout.trim(), '10.33');
done();
});
});
});
function exec(file, args) {
return new Promise((resolve, reject) => {
execFile(file, args, (err, stdout, stderr) => {
if (err) return reject(err)
return resolve({ stdout, stderr })
})
})
}
module.exports = {
'should export a path to current executable': () => {
if (process.platform === 'win32') {
const exePath = path.join(__dirname, '../node_modules/exiftool.exe/vendor/exiftool.exe')
assert.equal(exiftool, exePath)
} else {
const plPath = path.join(__dirname, '../node_modules/exiftool.pl/vendor/exiftool')
assert.equal(exiftool, plPath)
}
},
'should be able to run the executable': () => {
const stdoutData = 'test-out'
const stderrData = 'test-err'
const args = ['-echo', stdoutData, '-echo2', stderrData]
return exec(exiftool, args)
.then((res) => {
assert.equal(res.stdout.trim(), stdoutData)
assert.equal(res.stderr.trim(), stderrData)
})
},
'should have version 10.53': () => {
return exec(exiftool, ['-ver'])
.then((res) => {
assert.equal(res.stdout.trim(), '10.53')
})
},
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc