Strngle
Composable string validation!
A pretty neat way to validate the content of strings. Use the validators Strngle comes with, or add your own. Strngle is written in Typescript and comes with full type definitions.
Docs will be added eventually.
Installation
npm:
npm i strngle
yarn:
yarn add strngle
Basic usage
; const valid message = ; if !valid console;
Adding your own validators
; const startsWith = { return { if value !== character return valid: false message: `Must begin with ` ; return valid: true ; } ;}; const valid = ;