👨🚀 ☄
Space
Everyone's favorite regex validations build in JS.
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?
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