Catalog npm
Back to packageRELEASE DETAILS

1.0.4

npm

@0x-jerry/v2ray-schema

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

Published25 Feb 2024
Direct dependencies13
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 13

Native requirements
13 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
remark
Environment
{
  "local_name": "remark",
  "alias": false,
  "peer_metadata": null
}
^15.0.1runtime
@biomejs/biome
Environment
{
  "local_name": "@biomejs/biome",
  "alias": false,
  "peer_metadata": null
}
^1.5.3runtime
@0x-jerry/utils
Environment
{
  "local_name": "@0x-jerry/utils",
  "alias": false,
  "peer_metadata": null
}
^2.1.1runtime
tsx
Environment
{
  "local_name": "tsx",
  "alias": false,
  "peer_metadata": null
}
^4.7.1development
tsup
Environment
{
  "local_name": "tsup",
  "alias": false,
  "peer_metadata": null
}
^8.0.2development
fs-extra
Environment
{
  "local_name": "fs-extra",
  "alias": false,
  "peer_metadata": null
}
^11.2.0development
fast-glob
Environment
{
  "local_name": "fast-glob",
  "alias": false,
  "peer_metadata": null
}
^3.3.2development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.3.3development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^20.11.20development
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.4development
@0x-jerry/x-release
Environment
{
  "local_name": "@0x-jerry/x-release",
  "alias": false,
  "peer_metadata": null
}
0.4.0development
typescript-json-schema
Environment
{
  "local_name": "typescript-json-schema",
  "alias": false,
  "peer_metadata": null
}
^0.63.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "3f378517f36ba8ee7fba667f15ebad2c9cc46fa5",
  "tarball": "https://registry.npmjs.org/@0x-jerry/v2ray-schema/-/v2ray-schema-1.0.4.tgz",
  "fileCount": 77,
  "integrity": "sha512-TmH0VXnMNQcDUUS+mt59ZS+iKluSQX1OdrA2Hf+m16nMQVNJEexr62L6VlGjHe5NuUbufdyfAZ8CeVqHlgDIfQ==",
  "signatures": [
    {
      "sig": "MEUCIQDozjtSKn82j6G/gXluNnQYvMPfsWqPwd8SMwBol8+j5AIgdcY3T49r3sxZuPj3N0KVGayTHRkwn89/ImK1KOVYKfM=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 206469
}

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:b1d138ddf244df32dac609a6669ff3e9760af8005cd30b2efb527cd55fb06033

Other collected versions

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