everyday-utilz
v1.0.2
Published
everyday javascript utils to speed up development time
Downloads
8
Maintainers
Readme
everyday-utilz
everyday-utilz is an open source, library of Javascript utils to reduce development time and make development easier.
It look's like :
const text = ucAllFirst("we are here")
console.log(text)
Install
npm i everyday-utilz
Usage
🔴IMPORTANT❗ Importing selected functions into your project
import { isEmail, isEmptyString } from "everyday-utilz";
Applying it to your code!!!
const [email, setEmail] = useState("")
const [emailError, setEmailError] = useState(false)
const [userName, setUserName] = useState("")
const [userNameError, setUserNameError] = useState(false)
const validateForm = () => {
if(!isEmail(email)){
setEmail("not a valid email")
}
if(isEmptyString()) {
setUserName("username required")
}
}
Contributions
The main goal is to get developers to add up their everyday javascript utility functions to speed up development time and help other developers.
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D