Catalog npm
Back to packageRELEASE DETAILS

0.2.6

npm

@0x-jerry/v2ray-schema

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

Published15 Feb 2022
Direct dependencies11
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 11

Native requirements
11 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^10.5.0development
fs-extra
Environment
{
  "local_name": "fs-extra",
  "alias": false,
  "peer_metadata": null
}
^10.0.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.5.5development
@babel/core
Environment
{
  "local_name": "@babel/core",
  "alias": false,
  "peer_metadata": null
}
^7.17.2development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^17.0.18development
@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.18development
@0x-jerry/x-release
Environment
{
  "local_name": "@0x-jerry/x-release",
  "alias": false,
  "peer_metadata": null
}
^0.3.2development
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.16.7development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "ba1ea8a030bb45d35d23605a1718f1acf04c63aa",
  "tarball": "https://registry.npmjs.org/@0x-jerry/v2ray-schema/-/v2ray-schema-0.2.6.tgz",
  "fileCount": 16,
  "integrity": "sha512-EY4f8As5hufBtl63UVYLsc3lgfdRs7WYfCnfoBEDVxgty9n/+5aSmgJkQ4l+Bne9sthHjF9e933yNmJNRycQIg==",
  "signatures": [
    {
      "sig": "MEYCIQCUgXgtM6m9pMLcqjqMxYaglkD3HQlFYMM7PMSqhh6TFwIhAJowOC+tB+6daSb+wcc7V8ifXIsHmRE3YFnA70x0E9Qf",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 52982,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiC8iWCRA9TVsSAnZWagAAsbQQAJDbFivD0e/0TUte3A9D\nEbjOwIlwvmRktlAH8e2klfau3tOPEH0l9kOTB8zGNlqs6dUQ55XGjoJxsngY\nNiPv0FH/iCUQI7jg6qH0z1hycQalk+HNZ+1SkqU7G2q/CUwg3zUSGRB8FUhK\n3KlwTKpwO507lo0NzEwsOgN5lNSWcSS/3pK66vk059Wr5PmqqBBJfHCmojU4\n4VCH8x20l1/CW7mjgJ+PlDGO3PRENykaPC4QH8JBJz/gjftVIcozlacybzTW\nQx396X/iniZ5PbYg0MExFyc/vsVH5IMRJxtbD3HsW59fGHnKfLsaj0a1SyBo\nLioe3C42zEymhSJWhghKumxjRnmZNHfrn9gt077trlsNkSp83zcJZapFEojB\nmQOPs5xq0RJg7+QMI6ZGDo1n4hyC25ar4V1yPQ/lRM9josaGGN5ypBe+dvGN\nrTkAapFz7rNSMpxYhGsSgw2UT60osRnC1PXivvU7EoMhs0eRJcnjFDdd7E/B\nLSrFHxwkYkFHJiLOZSL1+rcrzCeCFDHODVQtR0fFJFyrp8PF6OhGq/noBd+s\n5ZuAAFYQol+GAWjNsf0CPmCqRFJi2CTMbGpLsAkJfvfc8ilbc0Qz5I4o/yCa\nw+7eN8ZPyFjvSU2vIKYONCTjdYeYGy7iEOrBw8zdO2626aQCCBj8FrtSgGIr\n0Cuc\r\n=cJdp\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:8ac6ac12eb1bc3087a8a17faf6546ae44f5db79ceccbc4f120f4db6b9c3f453e

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 →