问题描述 投票:0回答:1

npm install file-type

与:

node.js file format
1个回答
0
投票

}

const filename = 'path/to/your/file';
getFileType(filename)
.then((result) => console.log('MIME type:', result))
.catch((err) => console.error('Error:', err));

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.