3.0.0 • Published 3 years ago
texthelper1 v3.0.0
texthelper1
Simple text helper library for javascript.
Install texthelper1
npm install --save texthelper1
Using texthelper1
// ES6
import 'texthelper1';
// ES5
require('texthelper1');
const text = 'asd dsa';
// General
text.firstup(); // Asd dsa
text.wordsfirstup(); // Asd Dsa
text.doublequotes(); // "asd dsa"
text.singlequotes(); // 'asd dsa'
text.camelcase(); // asdDsa
text.pascalcase(); // AsdDsa
text.snakecase(); // asd_dsa
text.kebabcase(); // asd-dsa
text.reverse(); // asd dsa
text.removenumber(); // asd dsa
text.removespace(); // asddsa
// Punctuation marks
text.endpoint(); // asd dsa.
text.question(); // asd dsa?
text.exclamation(); // asd dsa!
text.blabla(); // asd dsa...
// Brackets
text.brackets(); // [asd dsa]
text.parentheses(); // (asd dsa)
text.braces(); // {asd dsa}
text.anglebrackets(); // <asd dsa>
// Validator
text.isurl(); // false
text.isnullorempty(); // false
// Miscellaneous
text.password(); // *******
text.reset(); //
// Complex
text.blabla().question().parentheses() // (asd dsa...?)