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

vue-canonical-encyclopedia

v0.0.5

Published

Vue、React、js等项目开发常用正则大全

Downloads

10

Readme

安装本项目

npm i vue-canonical-encyclopedia

使用本项目

// 导入本项目
const R=require('vue-canonical-encyclopedia');

// 使用本项目 示例如下
//火车车次
const Train_number=R.Regular.Train_number;
console.log(Train_number);

所有正则参数

| 参数| 参数说明 | |--|--| | Train_number | 火车车次 | | IMEI | 手机机身码(IMEI) | | Url_port | 必须带端口号的网址(或ip)| | Url | 网址(URL) | | Social_credit | 统一社会信用代码 | | Social_credit2| 统一社会信用代码(宽松匹配)(15位/18位/20位数字/字母) | | Thunderbolt_Link | 迅雷链接 | | ed2k_Link | ed2k链接(宽松匹配) | | Magnet_URI | 磁力链接(宽松匹配) | | Subnet_mask | 子网掩码(不包含 0.0.0.0) | | Linux_hidden_path | linux"隐藏文件"路径 | | Linux_folder_path | linux文件夹路径| | Linux_file_path | linux文件路径 | | window_folder_path| window"文件夹"路径 | | window_file_path | window下"文件"路径| | Stock_code | 股票代码(A股) | | Test_score | 大于等于0, 小于等于150, 支持小数位出现5, 如145.5, 用于判断考卷分数 | | Html_comments | html注释 | | md5_32 | md5格式(32位) | | GUID_UUID | GUID/UUID| | Version | 版本号(version)格式必须为X.Y.Z | | Video_url | 视频(video)链接地址(视频格式可按需增删) | | Image_url | 图片(image)链接地址(图片格式可按需增删) | | HH_mm_ss | 24小时制时间(HH:mm:ss) | | hh_mm_ss | 12小时制时间(hh:mm:ss) | | base64 | base64格式 | | Monetary_amount | 数字/货币金额(支持负数、千分位分隔符) | | Just_Monetary_amount | 数字/货币金额 (只支持正数、不支持校验千分位分隔符) | | Card_No | 银行卡号(10到30位, 覆盖对公/私账户) | | Chinese_name | 中文姓名| | English_name | 英文姓名 | | License_plate_new | 车牌号(新能源) | | License_plate_no | 车牌号(非新能源) | | License_plate_blend | 车牌号(新能源+非新能源) | | Mobile_number_China_strict | 手机号(mobile phone)中国(严谨), 根据工信部2019年最新公布的手机号段 | | Mobile_number_China_easy | 手机号(mobile phone)中国(宽松), 只要是13,14,15,16,17,18,19开头即可 | | Mobile_number_China_Most_loose | 手机号(mobile phone)中国(最宽松), 只要是1开头即可, 如果你的手机号是用来接收短信, 优先建议选择这一条 | | Date_easy | 日期(宽松) | | Date_strict | 日期(严谨, 支持闰年判断) | | China_Province | 中国省 | | Time_format | 可以被moment转化成功的时间 YYYYMMDD HH:mm:ss | | Email | email(邮箱) | | Tel_phone_china | 座机(tel phone)电话(国内),如: 0341-86091234 | | ID_number1 | 身份证号(1代,15位数字)| | ID_number2 | 身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X | | ID_number1_2 | 身份证号, 支持1/2代(15位/18位数字) | | Passport | 护照(包含香港、澳门) | | Account_number | 帐号是否合法(字母开头,允许5-16字节,允许字母数字下划线组合 | | Chinese | 中文/汉字 | | Decimal | 小数 | | Number | 只包含数字 | | HTML_easy | html标签(宽松匹配)| | Chinese_punctuation | 匹配中文汉字和中文标点 | | QQ_number | qq号格式正确 | |Numeric_letters | 数字和字母组成 | | English_letter | 英文字母 | | Small_English_letters| 小写英文字母组成 | | Capital_letters | 大写英文字母 | | Password_strength_check | 密码强度校验,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符 | | User_name_verification| 用户名校验,4到16位(字母,数字,下划线,减号) | | Ipv4 | ip-v4[:端口] | | Ipv6 | ip-v6[:端口] | | Hexadecimal_color| 16进制颜色 | | Wechat_number | 微信号(wx),6至20位,以字母开头,字母,数字,减号,下划线 | | Postal_Code_China | 邮政编码(中国) | | Chinese_numeralsL| 中文和数字 | | Cannot_contain_letters | 不能包含字母 | | Java_package_name | java包名 | | Mac_url | mac地址 | | Continuous_repeating_characters | 匹配连续重复的数字字符 | | Digital_English_Chinese | 数字和英文字母组成,并且同时含有数字、中文和英文字母 | | HongKong_Identity_Card | 香港身份证 | | Macau_Identity_Card | 澳门身份证 | | Taiwan_ID_card | 台湾身份证 | | Password_3 | 大写字母,小写字母,数字,特殊符号 @#$%^&*~()-+=` 中任意3项密码 | | ASCII_special | ASCII码表中的全部的特殊字符 | | Positive_integer_0| 正整数,不包含0 | | Negtive_integer_0 | 负整数,不包含0 | | Integer | 整数 | | Floating_point_number | 浮点数 | | Floating_point_number_strict | 浮点数(严格) | | Chinese_mailbox| email(支持中文邮箱) | | Domain_name | 域名(非网址, 不包含协议) |