typia icon indicating copy to clipboard operation
typia copied to clipboard

Could be replace randexp with something else?

Open EloB opened this issue 5 months ago • 7 comments

Feature Request

The randexp seems like an unmaintained repo. It's using CJS that is bad for dead code elimination. Also has some old dependencies that also seems to be unmaintained. https://github.com/fent/randexp.js

Made a PR to try to add sideEffects: false to them without any response.

What do you think?

EloB avatar Jan 30 '24 12:01 EloB

Do you know something to recommend?

I also hope to change to another one. When complicate regular expression comes, randexp generates wrong string value which even cannot pass the RegExp.test(string) function of itself.

samchon avatar Jan 30 '24 15:01 samchon

Might give reregexp a shot. It does have limitations though.

Namchee avatar Feb 06 '24 02:02 Namchee

@samchon I never used such feature before. The only thing I would like is something that is ESM because it's better for dead code elimination.

EloB avatar Feb 06 '24 10:02 EloB