Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qcfv

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qcfv

form validator

  • 1.1.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

qcfv

Form validation tool

install

yarn install qcfv

api

  • is_empty // 验证字符串是否为空
  • is_empty_obj // 验证对象时候为空
  • is_idcard // 验证身份证
  • is_email // 验证邮箱
  • is_ip // 验证合法 ip 地址
  • is_fax // 验证传真
  • is_mobile // 验证座机
  • is_phone // 验证手机
  • is_url // 验证URL
  • is_money // 验证money
  • is_english // 验证英文
  • is_chinese // 验证中文
  • is_percent // 验证百分比

use

  • front
import qcfv from "qcfv"
...
let str = "";
console.log("empty",qcfv.is_empty(str));

  • Node.js
const qcfv = require("./umd/index.js").default;
...
let obj = {};
console.log("empty obj",qcfv.is_empty_obj(obj));

FAQs

Package last updated on 30 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc