Skip to content

Everyone's favorite regex validations built in JS.

License

Notifications You must be signed in to change notification settings

marcelogaldino/space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space 👨‍🚀☄

GitHub issues GitHub forks GitHub stars GitHub license GitHub license

Everyone's favorite regex validations build in JS.

Checkout our package at npm page here

Table of Contents

Why should I use Space?

Space borned to be simple and easy to use, it helps you validate strings with regular expressions (regex).

Documentation

name type description
checkValidEmail string returns True or False
removeSpacesEndOfLine string returns your string without spaces at the end

How to use?

Installing the package

# Using NPM
npm i @marcelogaldino/space

# Using Yarn
yarn add @marcelogaldino/space

Below we have some examples using Space validations, you also can check the examples folder.

Removing Spaces at the end.

const space = require('../index.js')

space.removeSpacesEndOfLine("My string with spaces at the end of the line   ")

// output
// "My string with spaces at the end of the line"

Checking if is a valid email.

const space = require('../index.js')

space.checkValidEmail('marcelog@marcelogaldino.com')

// output
// "true"

Contributing

Check out the contributing page to see our guidelines.

License

This project is under the MIT license. Released in 2020.

Made with love by Marcelo Galdino 💜👨‍🚀