sv

sm-validator

a simple but powerful tool for validating form fields. enjoy it!

Showing:

Popularity

Downloads/wk

2

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

3.7KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

sm-validator(small form validator)

Features

  • Less than 10KB

  • No dependencies

  • Customizable rules messages and styles

  • Support bootstrap and semantic

  • Useable RegExp on html

Demos

  • Simplest demo
<input type="text" data-rule="required">
<script>
  new SMValidator('input');
</script>

Download

  • From Github

  • Use npm npm install --save sm-validator

  • Use bower bower install sm-validator

Documents

Quick Start

About dist

  • SMValidator.js source with config

  • SMValidator.min.js the minify for SMValidator

  • SMValidator.pure.min.js without config, set rule and style by yourself

TODO

  1. 详细的API说明

  2. 测试用例及浏览器兼容测试

  3. 英文文档

  4. 添加vue、jquery插件版本

Reference

some inspirations comes from: nice-validator

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial