0.0.1 • Published 2 years ago

@wholezb/validate v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@wholezb/validate

A tools library of RegExp validater.

Documents: view the document

Steup

npm install @wholezb/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: [
    '@wholezb/*'
  ]
};

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 '@wholezb/validate';

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

Or direct reference to regular:

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

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