0.0.1 • Published 3 years ago

@mudas/validate v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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('aosnow@yeah.net');
// => true

Or direct reference to regular:

import {Email} from '@mudas/validate';

Email.test('aosnow@yeah.net');
// => true