有没有办法使用node.js读取文件元数据 [英] Is there a way to read file metadata using node.js
本文介绍了有没有办法使用node.js读取文件元数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人知道我可以使用node.js读取文件元数据的方法?例如,我想阅读jpeg文件(在Windows机器上)的详细信息选项卡上的注释属性。请参阅下面的图片,了解我试图从文件的元数据中读取的内容。
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.
推荐答案
有很多NPM包用于读取EXIF数据。例如:
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);
这篇关于有没有办法使用node.js读取文件元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文