Answers for "File type node js"

0

File type node js

const FileType = require('file-type');

(async () => {
	console.log(await FileType.fromFile('Unicorn.png'));
	//=> {ext: 'png', mime: 'image/png'}
})();
Posted by: Guest on April-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language