venkat-python-methods
v1.0.4
Published
// examples
Downloads
15
Readme
// examples
require('venkat-python-methods');
let titlecase = "hi hELLOW, hoW Are You.!".title();
console.log(titlecase); // Hi Hellow, How Are You.!
let centeredStr = "hello".center(9,'-');
console.log(centeredStr); // --hello--
All string functions:
- capitalize,
- center,
- count,
- expandtabs,
- isalnum,
- isalpha,
- isdigit,
- islower,
- isupper,
- isspace,
- swapcase,
- title,
- zfill,
- ljust,
- rjust