npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

regular-xb

v1.0.7

Published

常见的正则检验

Downloads

11

Readme

regular-xb

方法

email:是否邮箱,
url:是否url地址,
domain:是否域名,
ipAddress:是否ip地址,
creditCard:是否信用卡,
alphaNumeric:是否字母和数字,
number:是否数字,
html:是否是否HTML标签,
phone:是否手机号,
yearToDay:是否年月日 2000-01-01 or 2001-1-1
tel:是否座机电话,
IDCard:是否2019身份证校验15位18位,
chinese:是否全部中文,
decimal:是否小数,
EN:是否全英文,
smallEn:是否小写字母,
bigEn:是否大写字母,
ipv4:是否ipv4校验,
ipv6: 是否ipv6,
weChatNum:是否微信号校验,
PostalCode:是否邮政编码校验,
chineseAndNum:是否中文+数字,
notEn:是否不是字母,
thunder: 是否迅雷链接,
ed2k: 是否ed2k链接,
magnet: 是否磁力链接,
subnetMask: 是否子网掩码,
linuxFolderPath: 是否Linux文件夹路径,
linuxFilePath: 是否Linux文件路径,
windowFolderPath:是否window文件夹路径,
windowFilePath:是否window文件路径,
AShares: 是否A股代码,
htmlNotes: 是否HTML注释,
MD5: 是否32位MD5,
videoLink: 是否视频链接,
imageLink: 是否图片链接,
Hours24:是否24小时制时间(HH:mm:ss)
Hours12:是否12小时制时间(hh:mm:ss)
base64:是否base64格式

###安装

npm install regular-xb

###引入

import regular from 'regular-xb' 全部引入
import { email, url } from 'regular-xb' 部分引入
const regular = require('regular-xb') ES5模块引入

###用法

全部引入用法:regular.email(data)
部分引入用法:email(data)
模块引入用法:regular.email(data)

仓库地址,欢迎完善

git地址 肖波码云.