Everyone's favorite regex validations build in JS.
Checkout our package at npm page here
Space borned to be simple and easy to use, it helps you validate strings with regular expressions (regex).
name | type | description |
---|---|---|
checkValidEmail | string |
returns True or False |
removeSpacesEndOfLine | string |
returns your string without spaces at the end |
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"
Check out the contributing page to see our guidelines.
This project is under the MIT license. Released in 2020.
Made with love by Marcelo Galdino 💜👨🚀