stringjs
stringjs is a JavaScript library for performing various checks on a string.
You have the following functions:
How to install stringjs?
npm i stringjs
How to use stringjs?
const { StringJS } = require("stringjs");
// OR
const { SJS } = require("stringjs");
// We'll use the SJS class
new SJS("myString").isLower(); // false
new SJS("myString").isUpper(); // false
new SJS("myString").match("lowerAndUpper"); // true