0.0.2 • Published 8 years ago
@nathanfaucett/file_type v0.0.2
fileType
file type checks for the browser and node.js
var fileType = require("@nathanfaucett/file_type");
fileType(someFileBuffer); // returns type, ie "json" "html" etc...
file type checks for the browser and node.js
var fileType = require("@nathanfaucett/file_type");
fileType(someFileBuffer); // returns type, ie "json" "html" etc...