v8n
v8n copied to clipboard
☑️ JavaScript fluent validation library
Example snippet: ```ts function validEmail() { return (email: string) => { const re = /^(([^()\[\]\\.,;:\s@"]+(\.[^()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(String(email).toLowerCase()); }; } v8n.extend({ validEmail, }); v8n().validEmail().test("angelo@email"); // error here on 'validEmail' ``` The...
As discussed in other issues the `schema` rule should ideally support: - [ ] conditional validations depending on other properties in the schema (#164) - [x] strict mode that validates...
_Problem:_ Nowadays, we have to execute the library deployment process every time we need to produce a new version. It would be nice to have a complete CI/CD process, where...
I've been trying to integrate the v8n into my project for a few days now. But that fails once when typescript is compiled with the import or with the call...