0.0.5 • Published 3 years ago

@marcelogaldino/space v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Space 👨‍🚀☄

GitHub issues GitHub forks GitHub stars GitHub license GitHub license

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

nametypedescription
checkValidEmailstringreturns True or False
removeSpacesEndOfLinestringreturns 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 💜👨‍🚀