Catalog npm
Back to packageRELEASE DETAILS

0.3.0

npm

@0x-jerry/v2ray-schema

根据 [v2fly](https://v2fly.org/) 文档,自动生成 JSON Schema 和 TypeScript typedef

Published4 May 2022
Direct dependencies12
Transitive dependenciesNot calculated

README

Current package documentation

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 = {
  ...
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 12

Native requirements
12 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
tsup
Environment
{
  "local_name": "tsup",
  "alias": false,
  "peer_metadata": null
}
^5.12.6development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^10.7.0development
fs-extra
Environment
{
  "local_name": "fs-extra",
  "alias": false,
  "peer_metadata": null
}
^10.1.0development
fast-glob
Environment
{
  "local_name": "fast-glob",
  "alias": false,
  "peer_metadata": null
}
^3.2.11development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.6.4development
@babel/core
Environment
{
  "local_name": "@babel/core",
  "alias": false,
  "peer_metadata": null
}
^7.17.10development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^17.0.31development
@types/fs-extra
Environment
{
  "local_name": "@types/fs-extra",
  "alias": false,
  "peer_metadata": null
}
^9.0.13development
@types/babel__core
Environment
{
  "local_name": "@types/babel__core",
  "alias": false,
  "peer_metadata": null
}
^7.1.19development
@0x-jerry/x-release
Environment
{
  "local_name": "@0x-jerry/x-release",
  "alias": false,
  "peer_metadata": null
}
0.3.4-0development
typescript-json-schema
Environment
{
  "local_name": "typescript-json-schema",
  "alias": false,
  "peer_metadata": null
}
^0.53.0development
@babel/plugin-syntax-typescript
Environment
{
  "local_name": "@babel/plugin-syntax-typescript",
  "alias": false,
  "peer_metadata": null
}
^7.17.10development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "8a466c3750e6cb077a47c34364f1e9c2d178511f",
  "tarball": "https://registry.npmjs.org/@0x-jerry/v2ray-schema/-/v2ray-schema-0.3.0.tgz",
  "fileCount": 17,
  "integrity": "sha512-TOmtXBXMI5K+XOGa4UEo9xeM5E85p78O0zo+cl5VGTsfUPr8p85Rb0/+F0f689edpz7rQH2onySbDOZnmk6lbw==",
  "signatures": [
    {
      "sig": "MEUCIESMlbp4t4I8Pm98QFI1rNBzzziKah+KVNRtTHlQ/h04AiEAxF0CzaTu2d6kNY2SolhCxjOViLDBoWcIlR5rzVmO5H8=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 55756,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicor5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSuRAApNG2j9CG/RPyAhDg9UZWm+UoNquBONAAPSeBtdSWfhiTRqCG\r\nXdTdzgvE/minwB08XEQz/UD1r9kxUC03uDQkmt55x9Lc8yoDjBo4Do+YWQrM\r\nDaqogOuMlwIuKcpqop5GUT+hQR2H8CqP6dXrzeDLm1rNRYscJxncsVZzJT4o\r\n8iCOvevXAdO0n3OQrNq91VwXDY4z14/BU2oQCq1Y/VMeVuajuFq0YCcczB53\r\nU+feGYl0L6nPJXen2utwmzCgElSrHBtnyA+9VFhckshV5jRxhJGUjiByDVCX\r\nvjxQaPLvVXcCLfab7A6r7sV08umfBn6oNZupG53nq3LlLtS24Li+WqhtEGi2\r\nc7L8MUQct/AFgl1J8JsbE/jWkpwFW0FEnKL//gTPEp5RCy8LTuyWc2rXrkgY\r\nX9vQaOcSwYSR1NHveMyeStzrbNiw85DXWrIGtYgISvaGmDylFW6TkZTOm/fG\r\nLzpjK/OlVPSnEPyB7LWGDzcebwcg/s4RWFCF2ArWb2OlqoPXrwv7kof8ZyiG\r\nuPgFlo3d//B1o3MFBMH50tvObYceTE4cBSroz52yyiq5BS1zXz6zg0pyPHFV\r\nzf0n2aqh1TDhsc7CxQ7FynDxSUTtjFkW9znct2yJms863Mj9PuXDWW58JPaJ\r\nOsPKLydRfOi5LEL8fLyKnK7bP82/Ripk5Uo=\r\n=W+UO\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0x-jerry/v2ray-config-json-schema

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0x-jerry/v2fly-schema

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:17 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:d9f58de8e9b54a8d3bb88a8d94f48e163fdff28a7df8797bb9e9f352cb161d26

Other collected versions

2.0.01 Mar1.0.510 Jul1.0.425 Feb1.0.326 Feb1.0.226 Feb1.0.126 FebView all collected versions →