
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@lemoncode/fonk-is-lowercase-validator
Advanced tools
This is a [fonk](https://github.com/Lemoncode/fonk) microlibrary that brings validation capabilities to validate if a field of a form is a lowercase string
This is a fonk microlibrary that brings validation capabilities to:
How to add it to an existing form validation schema:
We have the following form model:
const myFormValues = {
product: 'shoes',
price: 20,
}
We can add a isLowercase validation to the myFormValues
import { isLowercase } from '@lemoncode/fonk-is-lowercase-validator';
const validationSchema = {
field: {
product: [isLowercase.validator],
},
};
You can customize the error message displayed in two ways:
import { isLowercase } from '@lemoncode/fonk-is-lowercase-validator';
isLowercase.setErrorMessage('El campo debe de ser una cadena en minúsculas');
import { isLowercase } from '@lemoncode/fonk-is-lowercase-validator';
const validationSchema = {
field: {
price: [
{
validator: isLowercase.validator,
message: 'Error message only updated for the validation schema',
},
],
},
};
Please, refer to fonk to know more.
We are an innovating team of Javascript experts, passionate about turning your ideas into robust products.
Basefactor, consultancy by Lemoncode provides consultancy and coaching services.
Lemoncode provides training services.
For the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend
FAQs
This is a [fonk](https://github.com/Lemoncode/fonk) microlibrary that brings validation capabilities to validate if a field of a form is a lowercase string
We found that @lemoncode/fonk-is-lowercase-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.