showing results for - "file type node js"
Paula
22 Aug 2018
1const FileType = require('file-type');
2
3(async () => {
4	console.log(await FileType.fromFile('Unicorn.png'));
5	//=> {ext: 'png', mime: 'image/png'}
6})();