thedesk/app/node_modules/exif-parser/cmd/list.js
2018-02-19 02:41:25 +09:00

9 lines
259 B
JavaScript

var exifParser = require('../index');
var buf = require('fs').readFileSync(process.argv[2]);
var parser = exifParser.create(buf);
var result = parser.parse();
Object.keys(result.tags).forEach(function(name) {
console.log(name+': ' + result.tags[name]);
});