Installationnpm install file-kindUsagevar fileKind = require("file-kind"); console.log(fileKind("image/png")); // "image"8 keywords2 dependents2 versionsmimetypekindfilefiletypefilekind@infinitebrahmanuniverse/nolb-file-@everything-registry/sub-chunk-16651.1.05 years ago1.0.010 years ago