sindresorhus/file-type

Is there any good ideas to detect html,svg,txt,js,css?

mankeheaven opened this issue · 1 comments

hello, my super star!
html, css, js, svg, txt, file type is undefined?
how can I support them?

The only way to reliably detect HTML, CSS, JS, SVG, is to use a parser for each. It's not possible to detect text as anything could be text.