Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mankeheaven opened this issue Jun 2, 2022 · 1 comment
Closed

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

mankeheaven opened this issue Jun 2, 2022 · 1 comment

Comments

@mankeheaven
Copy link

mankeheaven commented Jun 2, 2022

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

@sindresorhus
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants