verif-string
v1.0.3
Published
A package for manipulate string for verifications
Downloads
6
Maintainers
Readme
stringjs
stringjs is a JavaScript library for performing various checks on a string.
You have the following functions:
isUpper() => check is the following data is in full uppercase;
isLower() => check is the following data is in full lowercase;
match("lower") => check is the following data is in full lowercase;
match("upper") => check is the following data is in full uppercase;
match("lowerAndUpper") => check is the following data contains lower and uppercases;
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