validator.js
validator.js copied to clipboard
named import/export
Describe the bug Not exactly a bug but, a chance to enhance the import/export process.
Examples Currently, the import looks like this:
import isEmail from "validator/lib/isEmail";
import isAlpha from "validator/lib/isAlpha";
import isLength from "validator/lib/isLength";
import matches from "validator/lib/matches";
Proposed Feature
import {isEmail} from "validator";
import {isAlpha} from "validator";
import {isLength} from "validator";
import {matches} from "validator";
Hello @rahuldahal Thank you for the suggestion. It has been already suggested and discussed here #683 Closing since duplicate