@mudas/validate
v0.0.1
Published
A tools library of RegExp validater
Downloads
2
Readme
@mudas/validate
A tools library of RegExp validater.
Documents: view the document
Steup
npm install @mudas/validate -S
Build option
By default, babel-loader does not translate all files in node_modules, so specifying node_modules separately requires the esm module that babel translates
module.exports = {
transpileDependencies: [
'@mudas/*'
]
};
Note: The above is the configuration method of
vue.config.js
, please refer to relevant documents for other build environments
Usage example
import {isEmail} from '@mudas/validate';
isEmail('[email protected]');
// => true
Or direct reference to regular:
import {Email} from '@mudas/validate';
Email.test('[email protected]');
// => true