verif-string
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i verif-string

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

6.04 kB

Total Files

5

Last publish

Collaborators

  • skkyz3r