any-rule/package.json

388 lines
14 KiB
JSON
Raw Normal View History

2019-06-25 13:30:32 +08:00
{
2019-08-02 15:43:26 +08:00
"name": "any-rule",
"publisher": "russell",
2019-08-02 14:23:46 +08:00
"displayName": "any-rule",
2019-08-02 16:23:03 +08:00
"description": "你要的\"正则\"都在这!",
2021-05-28 09:07:47 +08:00
"version": "0.3.10",
"husky": {
"hooks": {
2020-08-03 10:19:10 +08:00
"pre-push": "npm run test:rules"
}
},
2020-02-23 02:00:56 +08:00
"scripts": {
"build:md": "node ./scripts/md.js",
2020-04-29 13:28:36 +08:00
"build": "npm run test:rules && npm version patch && node ./scripts/genCommond.js && vsce package --yarn && npm run build:md",
2020-02-23 02:00:56 +08:00
"vscode:prepublish": "npm run compile",
"compile": "webpack --mode production",
2020-02-23 02:00:56 +08:00
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
2020-04-04 22:18:30 +08:00
"test:rules": "node __test__/rule",
2020-04-29 13:23:26 +08:00
"release:demo": "cd packages/www && yarn release",
"dev:demo": "cd packages/www && yarn serve"
2020-02-23 02:00:56 +08:00
},
2019-08-02 14:23:46 +08:00
"engines": {
2019-08-02 23:40:09 +08:00
"vscode": "^1.12.0"
2019-08-02 14:23:46 +08:00
},
"categories": [
"Other"
],
2019-08-02 15:56:20 +08:00
"icon": "images/vscode-logo.png",
2019-08-02 15:43:26 +08:00
"bugs": {
"url": "https://github.com/any86/any-rule/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/any86/any-rule.git"
2019-08-02 15:43:26 +08:00
},
2019-08-02 14:23:46 +08:00
"activationEvents": [
2020-02-21 22:50:42 +08:00
"*"
2019-08-02 14:23:46 +08:00
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "any-rule",
"properties": {
2020-02-27 23:57:07 +08:00
"any-rule.triggerString": {
"type": "string",
"default": "@zz",
"description": "触发字符串"
}
}
},
2020-02-27 23:57:07 +08:00
"menus": {
"editor/context": [
{
"when": "editorFocus",
"command": "extension.rule.callByMenu",
"group": "navigation"
}
]
},
2019-08-02 14:23:46 +08:00
"commands": [
{
"command": "extension.rule0",
"title": "$(rocket) zz: 火车车次"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule1",
"title": "$(rocket) zz: 手机机身码(IMEI)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule2",
"title": "$(rocket) zz: 必须带端口号的网址(或ip)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule3",
2020-04-29 13:29:36 +08:00
"title": "$(rocket) zz: 网址(url,支持端口和\"?+参数\"和\"#+参数)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule4",
"title": "$(rocket) zz: 统一社会信用代码"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule5",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: 统一社会信用代码(宽松匹配)(15位/18位/20位数字/字母)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule6",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: 迅雷链接"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule7",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: ed2k链接(宽松匹配)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule8",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: 磁力链接(宽松匹配)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule9",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: 子网掩码"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule10",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: linux\"隐藏文件\"路径"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule11",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: linux文件夹路径"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule12",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: linux文件路径"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule13",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: window\"文件夹\"路径"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule14",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: window下\"文件\"路径"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule15",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: 股票代码(A股)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule16",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: 大于等于0, 小于等于150, 支持小数位出现5, 如145.5, 用于判断考卷分数"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule17",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: html注释"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule18",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: md5格式(32位)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule19",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: GUID/UUID"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule20",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 版本号(version)格式必须为X.Y.Z"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule21",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 视频(video)链接地址(视频格式可按需增删)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule22",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 图片(image)链接地址(图片格式可按需增删)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule23",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 24小时制时间HH:mm:ss"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule24",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 12小时制时间hh:mm:ss"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule25",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: base64格式"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule26",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 数字/货币金额(支持负数、千分位分隔符)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule27",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 数字/货币金额 (只支持正数、不支持校验千分位分隔符)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule28",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 银行卡号10到30位, 覆盖对公/私账户, 参考[微信支付](https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=22_1)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule29",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 中文姓名"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule30",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 英文姓名"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule31",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 车牌号(新能源)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule32",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 车牌号(非新能源)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule33",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 车牌号(新能源+非新能源)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule34",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 手机号(mobile phone)中国(严谨), 根据工信部2019年最新公布的手机号段"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule35",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 手机号(mobile phone)中国(宽松), 只要是13,14,15,16,17,18,19开头即可"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule36",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 手机号(mobile phone)中国(最宽松), 只要是1开头即可, 如果你的手机号是用来接收短信, 优先建议选择这一条"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule37",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: date(日期)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule38",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: email(邮箱)"
2019-08-02 14:23:46 +08:00
},
{
"command": "extension.rule39",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 座机(tel phone)电话(国内),如: 0341-86091234"
2019-08-02 14:23:46 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule40",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 身份证号(1代,15位数字)"
2019-08-02 14:23:46 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule41",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X"
2019-08-02 14:23:46 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule42",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 身份证号, 支持1/2代(15位/18位数字)"
2019-08-02 14:23:46 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule43",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 护照(包含香港、澳门)"
2019-08-02 14:23:46 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule44",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 帐号是否合法(字母开头允许5-16字节允许字母数字下划线组合"
2019-08-02 14:23:46 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule45",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 中文/汉字"
2019-08-02 14:23:46 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule46",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 小数"
2019-08-02 14:23:46 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule47",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 数字"
2019-08-13 12:31:39 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule48",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: html标签(宽松匹配)"
2019-08-13 12:31:39 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule49",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: qq号格式正确"
2019-08-13 12:31:39 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule50",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 数字和字母组成"
2019-08-13 12:31:39 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule51",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 英文字母"
2019-08-13 12:31:39 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule52",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 小写英文字母组成"
2019-08-13 12:31:39 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule53",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 大写英文字母"
2019-08-13 12:31:39 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule54",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 密码强度校验最少6位包括至少1个大写字母1个小写字母1个数字1个特殊字符"
2019-08-13 12:31:39 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule55",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 用户名校验4到16位字母数字下划线减号"
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule56",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: ip-v4[:端口]"
2019-11-20 22:28:30 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule57",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: ip-v6[:端口]"
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule58",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 16进制颜色"
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule59",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 微信号(wx)6至20位以字母开头字母数字减号下划线"
2020-04-29 13:29:36 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule60",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 邮政编码(中国)"
2020-02-27 23:57:07 +08:00
},
2020-04-29 13:29:36 +08:00
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule61",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 中文和数字"
2020-04-29 13:29:36 +08:00
},
2020-06-14 09:47:30 +08:00
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule62",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 不能包含字母"
2020-06-14 09:47:30 +08:00
},
2020-07-18 23:51:05 +08:00
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule63",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: java包名"
2020-08-03 10:36:50 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule64",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: mac地址"
2020-07-18 23:51:05 +08:00
},
2020-08-03 10:36:50 +08:00
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule65",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 匹配连续重复的字符"
2020-08-03 10:36:50 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule66",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 数字和英文字母组成,并且同时含有数字和英文字母"
2020-08-03 10:36:50 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule67",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 香港身份证 "
2020-11-25 09:35:52 +08:00
},
{
2021-01-17 16:50:53 +08:00
"command": "extension.rule68",
2021-04-20 14:09:32 +08:00
"title": "$(rocket) zz: 澳门身份证 "
},
{
"command": "extension.rule69",
2020-08-03 10:36:50 +08:00
"title": "$(rocket) zz: 台湾身份证 "
},
{
"command": "extension.rule70",
"title": "$(rocket) zz: 正整数不包含0 "
},
{
"command": "extension.rule71",
"title": "$(rocket) zz: 负整数不包含0 "
},
{
"command": "extension.rule72",
"title": "$(rocket) zz: 整数 "
},
{
"command": "extension.rule73",
"title": "$(rocket) zz: 浮点数 "
},
2020-02-27 23:57:07 +08:00
{
"command": "extension.rule.callByMenu",
2021-04-20 14:09:32 +08:00
"title": "🦕正则大全(70条)"
2019-08-02 14:23:46 +08:00
}
]
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.6",
"@types/node": "^10.12.21",
2019-08-02 23:40:09 +08:00
"@types/vscode": "^1.12.0",
2019-08-02 14:23:46 +08:00
"glob": "^7.1.4",
"husky": "^4.2.5",
2019-08-02 14:23:46 +08:00
"mocha": "^6.1.4",
2020-03-28 22:11:21 +08:00
"qiniu-js": "^2.5.5",
"ts-loader": "^6.2.1",
2019-08-02 14:23:46 +08:00
"tslint": "^5.12.1",
2020-02-21 01:17:23 +08:00
"typescript": "^3.3.1",
2020-03-12 15:29:45 +08:00
"vsce": "^1.74.0",
"vscode-test": "^1.0.2",
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11"
},
2020-02-21 01:17:23 +08:00
"dependencies": {
2020-02-23 06:08:42 +08:00
"axios": "^0.19.2",
2020-02-21 01:17:23 +08:00
"transliteration": "^2.1.8"
2019-08-02 14:23:46 +08:00
}
2021-05-28 09:07:47 +08:00
}