2.0.0 • Published 8 months ago

@0x-jerry/v2ray-schema v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

V2ray config json schema

根据 v2fly 文档,自动生成 JSON Schema 和 TypeScript typedef

使用方式

Visual Studio Code

官方文档: json-schemas-and-settings

示例:

在项目中添加 .vscode/settings.json 配置文件,并设置 json.schemas 字段如下:

{
  "json.schemas": [
    {
      "fileMatch": ["/*.json", "/*.jsonc"],
      "url": "https://raw.githubusercontent.com/0x-jerry/v2ray-config-json-schema/master/v2fly.schema.json"
    }
  ]
}

Nodejs

安装:pnpm i @0x-jerry/v2ray-schema -D

typescript:

import type { V2FlyConfig } from '@0x-jerry/v2ray-schema'

const v2raySchema: V2FlyConfig = {
  ...
}
2.0.0

8 months ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.3

3 years ago

0.3.0

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago