Catalog npm
Back to packageRELEASE DETAILS

1.0.2

npm

@0x-jerry/v2ray-schema

根据 v2fly 文档,自动生成 json schema 和 typescript types

Published26 Feb 2023
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
remark
Environment
{
  "local_name": "remark",
  "alias": false,
  "peer_metadata": null
}
^14.0.2runtime
@0x-jerry/utils
Environment
{
  "local_name": "@0x-jerry/utils",
  "alias": false,
  "peer_metadata": null
}
^1.13.0runtime
tsx
Environment
{
  "local_name": "tsx",
  "alias": false,
  "peer_metadata": null
}
^3.12.3development
tsup
Environment
{
  "local_name": "tsup",
  "alias": false,
  "peer_metadata": null
}
^6.6.3development
fs-extra
Environment
{
  "local_name": "fs-extra",
  "alias": false,
  "peer_metadata": null
}
^11.1.0development
fast-glob
Environment
{
  "local_name": "fast-glob",
  "alias": false,
  "peer_metadata": null
}
^3.2.12development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.9.5development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^18.14.1development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.5development
@types/fs-extra
Environment
{
  "local_name": "@types/fs-extra",
  "alias": false,
  "peer_metadata": null
}
^11.0.1development
@0x-jerry/x-release
Environment
{
  "local_name": "@0x-jerry/x-release",
  "alias": false,
  "peer_metadata": null
}
0.3.6development
typescript-json-schema
Environment
{
  "local_name": "typescript-json-schema",
  "alias": false,
  "peer_metadata": null
}
^0.55.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "017e5a1278f250c8be98348497069a97daf1cd1b",
  "tarball": "https://registry.npmjs.org/@0x-jerry/v2ray-schema/-/v2ray-schema-1.0.2.tgz",
  "fileCount": 5,
  "integrity": "sha512-E1J9CxECMj2nY8Qe+chszSEa8KNaCS6J4UBNGjDm7oHRPMK/udqZwV0Ur3VX00/DfpFeNDMDRhNqVqCrqdMUbg==",
  "signatures": [
    {
      "sig": "MEYCIQCSrfLRjqapyQtmEuzzhqDwjMHVnmJA3wZO6lcbzSZJgAIhAOR3WDB6FgvZfTV/DuwCMwPWIFJIm5iXXlzhXRcZXdFy",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 126561,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+xbRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNPg/+MBzkJTJapHjNKzIL4k7pYXikewGUEMyIQiIADSHSbwUE5can\r\ncuY6xbYEytpV8VwnCN/2BjZ6TvtskrJ+T2ipK87qD2aSmMIIkf3QQ8GQn2af\r\ntVUZs8qInkaAetx44Un7lJXwWJGP/twDetXoRpQkN3Eh2mJbwdWMIFuNXC/s\r\nkktcdPCEUVQwkAIe0iyMlE4MbZcWVrGQGpi6T1+Y90g1nRcyad9njYBMN5BA\r\n8O73QfFnqZe/NdGHdgzAC7ZXFrajov+SmjrG1TA7wq+UCSu1OEHLbPXt4LxC\r\nEUQcthLkXAjQ6a50K2qZAbAoyqJBRlF7wKBPGRasMxoIfWOfeW0gTL6+MfY0\r\n4D6405RIwDhODiS8GXEuZGUxIwTklTVrjiNreUkuHnehOJiCLZbseT74prR4\r\nZlogubITlRYkyDWlSVckFU6bX4BFqVFHJAOogW7MbuB+idXyTYCjXpXuboDy\r\nCTdbeGQtbYASLL88L955Tp84LZR/Ahhjpsv9UuKAUl0AAUkcfTRkmHYcmmMM\r\ncB6Fx5RrGHeS61uVfSq/018oT11FukzEs0zT0Z3yckMfV026tdM4UKUK0vxj\r\nBZog4/Yjg3hepwDTy2+S5A8929RjXXEhztQ6WKMegu5KiTCacTdhAO+RNF0o\r\n4V22aywWFHlWPoZuS8/bQKPFnGrTyAn5etk=\r\n=HlbI\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:5fc65d30933b9ea74bdf4cf6401b4f42759bb74866d6df281fa797b59c90ad3e

Other collected versions

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