Is there a way to read file metadata using node.js

Does any one know of a way that I can read file metadata using node.js? For example, I want to read the 'comment' attribute on the 'details' tab of a jpeg file (on a Windows machine). See image below to understand what it is I am trying to read from the file's metadata.

enter image description here

Answers:

Answer

There are a lot of NPM packages for reading EXIF data. For example:

https://www.npmjs.org/package/exif-parser

var parser = require('exif-parser').create(buffer);
var result = parser.parse();
console.log(result);

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.