1.0.2 • Published 3 years ago

@think-smart/text-utility v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Form validator helps to validate form-fields in a smarter way

Example const validator = require('@think-smart/text-utility');

isInitCap - every word/s first char should be in uppercase & maximum one space can be allowed within words validator.isInitCap("Hey, How Are You?") - true validator.isInitCap("Hey, how Are You?") - false initCap - Make first character of all words in a sentence in uppercase validator.initCap('hey john, how are you!') - Hey John, How Are You! trimSpace - Remove extra space within words validator.trimSpace('hi john , will call you tomorrow . OK ?') - hi john, will call you tomorrow. OK?