0.0.1 • Published 5 years ago
@mudas/validate v0.0.1
@mudas/validate
A tools library of RegExp validater.
Documents: view the document
Steup
npm install @mudas/validate -SBuild 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('aosnow@yeah.net');
// => trueOr direct reference to regular:
import {Email} from '@mudas/validate';
Email.test('aosnow@yeah.net');
// => true0.0.1
5 years ago