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

Does anyone know how 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 the image below to understand what I'm trying to read from file metadata.

enter image description here

+5
source share
1 answer

There are many NPM packages for reading EXIF ​​data. For instance:

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

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

Source: https://habr.com/ru/post/1203577/


All Articles