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

multi-reg

v1.1.3

Published

仓库收敛了**数字**、**字符**、**特殊场景**的情况。

Downloads

1

Readme

regExp 正则大全

仓库收敛了数字字符特殊场景的情况。

支持amd、cmd、es6引入

var regStack = require(./reg);
var reg = regStack[type]   // 返回一个RegExp对象

// you can test or match it.
reg.test(111);  // false ? true

给出暴露的api说明:

cn-phone  大陆手机号
qq  腾讯qq号
email  邮箱
cn-id  大陆身份证
url  网址
car  车牌号
wechat  微信
date  日期
month 月份
day  天
ip  地址
ems  邮编

number 数字
ze-noze-num 零和非零开头的数字
noze-deci2  非零开头的最多带两位小数的数字
deci-1-2   带1-2位小数的正数或负数
p-n-deci  正数、负数、和小数
p-deci-d  有两位小数的正实数
p-deci-t  有1~3位小数的正实数
noze-p-int  非零的正整数
noze-n-int  非零的负整数
no-n-int  非负整数
no-p-int  非正整数
no-n-flo  非负浮点数
no-p-flo  非正浮点数
p-flo  正浮点数
n-flo  负浮点数
flo  浮点数

cn  汉字
cnum  英文和数字
3-c-20  长度为3-20的所有字符
en  由26个英文字母组成的字符串
uc  由26个大写英文字母组成的字符串
lc  由26个小写英文字母组成的字符串
enum  由数字和26个英文字母组成的字符串
cenum  由数字、26个英文字母或者下划线组成的字符串
normal  中文、英文、数字包括下划线
no-uline  中文、英文、数字但不包括下划线等符号
sp-code  可以输入含有^%&’,;=?$\”等字符
no-sp-code  禁止输入含有~的字符

欢迎使用