@mudas/validate
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @mudas/validate

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

49.5 kB

Total Files

10

Last publish

Collaborators

  • mudas