I want to write validators for forms that will be used in the frontend and backend, one nim code, twice the usage. But for that I want to know what regex libraries are fully compatible so I don't run in the problem of a pattern working differently in one of the targets. Any light on the subject is appreciated
what about using it for wasm? I'm not finding resources on compiling nim to wasm but what I've found made me question if npeg can work in it, so I wonder if you know anything about it
anything in pure nim that compiles to c can also compile to wasm. There is a github repository which contains an example config.nims file for compiling to wasm, but I can't find that right now. But I used it in my own project aswell, so you can just copy that (https://github.com/Nimaoth/Absytree/blob/main/config/config.nims). You'll need to install emscripten for that