thedesk/app/node_modules/exif-parser/cmd/list.js

9 lines
259 B
JavaScript
Raw Normal View History

2018-02-19 04:41:25 +11:00
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]);
});