1.0.3 • Published 3 years ago

verif-string v1.0.3

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

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