14 Star 127 Fork 30

Gitee 极速下载/any-rule

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/any86/any-rule
克隆/下载
package.json 15.44 KB
一键复制 编辑 原始数据 按行查看 历史
Russell 提交于 2022-11-07 12:05 . 0.3.18
{
"name": "any-rule",
"publisher": "russell",
"displayName": "any-rule",
"description": "你要的\"正则\"都在这!",
"version": "0.3.18",
"keywords": [
"vscode",
"typescript",
"regxp",
"正则"
],
"husky": {
"hooks": {
"pre-push": "npm run test:rules"
}
},
"scripts": {
"build:md": "node ./scripts/md.js",
"build": "npm run test:rules && npm version patch && node ./scripts/genCommond.js && vsce package --yarn && npm run build:md",
"vscode:prepublish": "npm run compile",
"compile": "webpack --mode production",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"test:rules": "node __test__/rule",
"release:demo": "cd packages/www && yarn release",
"dev:demo": "cd packages/www && yarn serve"
},
"engines": {
"vscode": "^1.12.0"
},
"categories": [
"Snippets",
"Other"
],
"icon": "images/vscode-logo.png",
"bugs": {
"url": "https://github.com/any86/any-rule/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/any86/any-rule.git"
},
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "any-rule",
"properties": {
"any-rule.triggerString": {
"type": "string",
"default": "@zz",
"description": "触发字符串"
},
"any-rule.supportedLanguages": {
"type": "string",
"default": "*,javascript,javascriptreact,typescript,typescriptreact,vue,vue-postcss,vue-sugarss,vue-html,json,jsonc,graphql,dart,sql,go,java,php,jade,python,swift,markdown",
"description": "支持的开发语言(用','分割)"
}
}
},
"menus": {
"editor/context": [
{
"when": "editorFocus",
"command": "extension.rule.callByMenu",
"group": "navigation"
}
]
},
"commands": [
{
"command": "extension.rule0",
"title": "$(rocket) zz: 火车车次"
},
{
"command": "extension.rule1",
"title": "$(rocket) zz: 手机机身码(IMEI)"
},
{
"command": "extension.rule2",
"title": "$(rocket) zz: 必须带端口号的网址(或ip)"
},
{
"command": "extension.rule3",
"title": "$(rocket) zz: 网址(URL)"
},
{
"command": "extension.rule4",
"title": "$(rocket) zz: 统一社会信用代码"
},
{
"command": "extension.rule5",
"title": "$(rocket) zz: 统一社会信用代码(宽松匹配)(15位/18位/20位数字/字母)"
},
{
"command": "extension.rule6",
"title": "$(rocket) zz: 迅雷链接"
},
{
"command": "extension.rule7",
"title": "$(rocket) zz: ed2k链接(宽松匹配)"
},
{
"command": "extension.rule8",
"title": "$(rocket) zz: 磁力链接(宽松匹配)"
},
{
"command": "extension.rule9",
"title": "$(rocket) zz: 子网掩码(不包含 0.0.0.0)"
},
{
"command": "extension.rule10",
"title": "$(rocket) zz: linux\"隐藏文件\"路径"
},
{
"command": "extension.rule11",
"title": "$(rocket) zz: linux文件夹路径"
},
{
"command": "extension.rule12",
"title": "$(rocket) zz: linux文件路径"
},
{
"command": "extension.rule13",
"title": "$(rocket) zz: window\"文件夹\"路径"
},
{
"command": "extension.rule14",
"title": "$(rocket) zz: window下\"文件\"路径"
},
{
"command": "extension.rule15",
"title": "$(rocket) zz: 股票代码(A股)"
},
{
"command": "extension.rule16",
"title": "$(rocket) zz: 大于等于0, 小于等于150, 支持小数位出现5, 如145.5, 用于判断考卷分数"
},
{
"command": "extension.rule17",
"title": "$(rocket) zz: html注释"
},
{
"command": "extension.rule18",
"title": "$(rocket) zz: md5格式(32位)"
},
{
"command": "extension.rule19",
"title": "$(rocket) zz: GUID/UUID"
},
{
"command": "extension.rule20",
"title": "$(rocket) zz: 版本号(version)格式必须为X.Y.Z"
},
{
"command": "extension.rule21",
"title": "$(rocket) zz: 视频(video)链接地址(视频格式可按需增删)"
},
{
"command": "extension.rule22",
"title": "$(rocket) zz: 图片(image)链接地址(图片格式可按需增删)"
},
{
"command": "extension.rule23",
"title": "$(rocket) zz: 24小时制时间(HH:mm:ss)"
},
{
"command": "extension.rule24",
"title": "$(rocket) zz: 12小时制时间(hh:mm:ss)"
},
{
"command": "extension.rule25",
"title": "$(rocket) zz: base64格式"
},
{
"command": "extension.rule26",
"title": "$(rocket) zz: 数字/货币金额(支持负数、千分位分隔符)"
},
{
"command": "extension.rule27",
"title": "$(rocket) zz: 银行卡号(10到30位, 覆盖对公/私账户, 参考[微信支付](https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=22_1))"
},
{
"command": "extension.rule28",
"title": "$(rocket) zz: 中文姓名"
},
{
"command": "extension.rule29",
"title": "$(rocket) zz: 英文姓名"
},
{
"command": "extension.rule30",
"title": "$(rocket) zz: 车牌号(新能源)"
},
{
"command": "extension.rule31",
"title": "$(rocket) zz: 车牌号(非新能源)"
},
{
"command": "extension.rule32",
"title": "$(rocket) zz: 车牌号(新能源+非新能源)"
},
{
"command": "extension.rule33",
"title": "$(rocket) zz: 手机号(mobile phone)中国(严谨), 根据工信部2019年最新公布的手机号段"
},
{
"command": "extension.rule34",
"title": "$(rocket) zz: 手机号(mobile phone)中国(宽松), 只要是13,14,15,16,17,18,19开头即可"
},
{
"command": "extension.rule35",
"title": "$(rocket) zz: 手机号(mobile phone)中国(最宽松), 只要是1开头即可, 如果你的手机号是用来接收短信, 优先建议选择这一条"
},
{
"command": "extension.rule36",
"title": "$(rocket) zz: 日期(宽松)"
},
{
"command": "extension.rule37",
"title": "$(rocket) zz: 日期(严谨, 支持闰年判断)"
},
{
"command": "extension.rule38",
"title": "$(rocket) zz: 中国省"
},
{
"command": "extension.rule39",
"title": "$(rocket) zz: 可以被moment转化成功的时间 YYYYMMDD HH:mm:ss"
},
{
"command": "extension.rule40",
"title": "$(rocket) zz: email(邮箱)"
},
{
"command": "extension.rule41",
"title": "$(rocket) zz: 座机(tel phone)电话(国内),如: 0341-86091234"
},
{
"command": "extension.rule42",
"title": "$(rocket) zz: 身份证号(1代,15位数字)"
},
{
"command": "extension.rule43",
"title": "$(rocket) zz: 身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X"
},
{
"command": "extension.rule44",
"title": "$(rocket) zz: 身份证号, 支持1/2代(15位/18位数字)"
},
{
"command": "extension.rule45",
"title": "$(rocket) zz: 护照(包含香港、澳门)"
},
{
"command": "extension.rule46",
"title": "$(rocket) zz: 帐号是否合法(字母开头,允许5-16字节,允许字母数字下划线组合"
},
{
"command": "extension.rule47",
"title": "$(rocket) zz: 中文/汉字"
},
{
"command": "extension.rule48",
"title": "$(rocket) zz: 小数(支持科学计数)"
},
{
"command": "extension.rule49",
"title": "$(rocket) zz: 只包含数字"
},
{
"command": "extension.rule50",
"title": "$(rocket) zz: html标签(宽松匹配)"
},
{
"command": "extension.rule51",
"title": "$(rocket) zz: 匹配中文汉字和中文标点"
},
{
"command": "extension.rule52",
"title": "$(rocket) zz: qq号格式正确"
},
{
"command": "extension.rule53",
"title": "$(rocket) zz: 数字和字母组成"
},
{
"command": "extension.rule54",
"title": "$(rocket) zz: 英文字母"
},
{
"command": "extension.rule55",
"title": "$(rocket) zz: 小写英文字母组成"
},
{
"command": "extension.rule56",
"title": "$(rocket) zz: 大写英文字母"
},
{
"command": "extension.rule57",
"title": "$(rocket) zz: 密码强度校验,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符"
},
{
"command": "extension.rule58",
"title": "$(rocket) zz: 用户名校验,4到16位(字母,数字,下划线,减号)"
},
{
"command": "extension.rule59",
"title": "$(rocket) zz: ip-v4[:端口]"
},
{
"command": "extension.rule60",
"title": "$(rocket) zz: ip-v6[:端口]"
},
{
"command": "extension.rule61",
"title": "$(rocket) zz: 16进制颜色"
},
{
"command": "extension.rule62",
"title": "$(rocket) zz: 微信号(wx),6至20位,以字母开头,字母,数字,减号,下划线"
},
{
"command": "extension.rule63",
"title": "$(rocket) zz: 邮政编码(中国)"
},
{
"command": "extension.rule64",
"title": "$(rocket) zz: 中文和数字"
},
{
"command": "extension.rule65",
"title": "$(rocket) zz: 不能包含字母"
},
{
"command": "extension.rule66",
"title": "$(rocket) zz: java包名"
},
{
"command": "extension.rule67",
"title": "$(rocket) zz: mac地址"
},
{
"command": "extension.rule68",
"title": "$(rocket) zz: 匹配连续重复的字符"
},
{
"command": "extension.rule69",
"title": "$(rocket) zz: 数字和英文字母组成,并且同时含有数字和英文字母"
},
{
"command": "extension.rule70",
"title": "$(rocket) zz: 香港身份证 "
},
{
"command": "extension.rule71",
"title": "$(rocket) zz: 澳门身份证 "
},
{
"command": "extension.rule72",
"title": "$(rocket) zz: 台湾身份证 "
},
{
"command": "extension.rule73",
"title": "$(rocket) zz: 大写字母,小写字母,数字,特殊符号 `@#$%^&*`~()-+=` 中任意3项密码"
},
{
"command": "extension.rule74",
"title": "$(rocket) zz: ASCII码表中的全部的特殊字符"
},
{
"command": "extension.rule75",
"title": "$(rocket) zz: 正整数,不包含0"
},
{
"command": "extension.rule76",
"title": "$(rocket) zz: 负整数,不包含0"
},
{
"command": "extension.rule77",
"title": "$(rocket) zz: 整数"
},
{
"command": "extension.rule78",
"title": "$(rocket) zz: 浮点数"
},
{
"command": "extension.rule79",
"title": "$(rocket) zz: 浮点数(严格)"
},
{
"command": "extension.rule80",
"title": "$(rocket) zz: email(支持中文邮箱)"
},
{
"command": "extension.rule81",
"title": "$(rocket) zz: 域名(非网址, 不包含协议)"
},
{
"command": "extension.rule82",
"title": "$(rocket) zz: 军官/士兵证"
},
{
"command": "extension.rule83",
"title": "$(rocket) zz: 户口薄"
},
{
"command": "extension.rule.callByMenu",
"title": "🦕正则大全(84条)"
}
]
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.6",
"@types/node": "^10.12.21",
"@types/vscode": "^1.12.0",
"glob": "^7.1.4",
"husky": "^4.2.5",
"mocha": "^6.1.4",
"qiniu-js": "^2.5.5",
"ts-loader": "^6.2.1",
"tslint": "^5.12.1",
"typescript": "^3.3.1",
"vsce": "^1.74.0",
"vscode-test": "^1.0.2",
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"axios": "^0.19.2",
"transliteration": "^2.1.8"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/any-rule.git
git@gitee.com:mirrors/any-rule.git
mirrors
any-rule
any-rule
master

搜索帮助