Skip to content

bretuobay/regus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of utility functions mostly regex utilities collected and tested for use.

Clone , install npm packages then, build and test

$ git clone https://github.com/bretuobay/regus.git
$ cd  regux       #  change directory
$ npm install    # Installs base packages
$ npm run build
$ npm test

After the package's code is ready, just set the proper version and publish!

$ npm version <major|minor|patch>    # updates package.json and applies tag
$ npm publish                        # lints, builds and publishes
$ git push --follow-tags             # don't forget to push the code and tags!

Watch out!

The files property in package.json specifies which files/folders will be published to the npm registry. As per initial settings, only the dist, lib and bin folders will be published to keep the installed package as clean and small as possible.

Folder's structure

.
├── bin        # ES5 command line scripts
├── cli        # Source command line scripts
├── dist       # ES5 package distribution files
├── lib        # Source package files
└── test       # Tests folder

Implemented functions

Following functions all return truthy

containsEmail(stringToCheck)
isValidEmail(emailStringToCheck)
isValidUrl(urlString)
isValidIPAddress(ipAddressString)
isValidDate(dateToTestString)
isValidPhoneNumber(phoneNumber)
isValidPassword(password)
isValidAscii(character)

About

Regular expression utility functions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published