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

Add validation feature #2165

Open
bear-lover opened this issue Jul 13, 2023 · 3 comments
Open

Add validation feature #2165

bear-lover opened this issue Jul 13, 2023 · 3 comments

Comments

@bear-lover
Copy link

Description

js-beautify makes code looks good and it has many features.
But while using it, it will be good feature that add validation feature.

I think add validate func like js_builtify or css_beautify.

@bitwiseman
Copy link
Member

What would this function do?

@bear-lover
Copy link
Author

its methods like js_builtify or css_beautify work well.
but if input value is not correct css format, this module works for only fomation.
To guarantee correct output, I'd like to add validation func here.
if validation return true, format func works but in other case it should not work.

@bitwiseman
Copy link
Member

In the case of this library, if given valid input it should always produce valid output. If it doesn't that a bug.
There are other tools that can provide validation.

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

No branches or pull requests

2 participants