{"_id":"@0x-jerry/x2sp","_rev":"7-25a465adc08fe40dce060f331bde9afd","name":"@0x-jerry/x2sp","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.0":{"name":"@0x-jerry/x2sp","version":"0.1.0","author":{"name":"0x-jerry","email":"x.jerry.wang@gmail.com"},"license":"MIT","_id":"@0x-jerry/x2sp@0.1.0","maintainers":[{"name":"cwxyz","email":"x.jerry.wang@gmail.com"}],"dist":{"shasum":"dadf176f63a2d0e4384aae71c5b453a71befce1f","tarball":"https://registry.npmjs.org/@0x-jerry/x2sp/-/x2sp-0.1.0.tgz","fileCount":5,"integrity":"sha512-Oe8zph9qh082XKiL9tvnS8WT1YDo5RBtTEm8xz2/WZFQcAWthxrq2LkPgftkPDknJ6KRz4KFJ4TGa2CnYYNtJw==","signatures":[{"sig":"MEUCIFxUjCecrc2KO2Xwp88EaVBZZaKVzqe+mugWBlathiQ7AiEAqVxOkFhqfjCflVeBaa8hqFKNkL2aoq+GWPT6tWZzTOQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4707},"main":"dist/index.js","type":"module","engines":{"node":">= 18"},"gitHead":"cf72d785616a2677e72974cfafddd1597327e95e","scripts":{"dev":"tsx src/index.ts","test":"vitest","build":"tsup src/index.ts --format esm --dts --clean","ci:test":"vitest run","release":"x-release","prepublishOnly":"npm run build"},"typings":"dist/index.d.ts","_npmUser":{"name":"cwxyz","email":"x.jerry.wang@gmail.com"},"_npmVersion":"11.0.0","description":"Xray sharing protocal","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@0x-jerry/utils":"^5.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","vitest":"^3.0.7","typescript":"^5.8.2","@types/node":"^22.13.9","@biomejs/biome":"^1.9.4","@0x-jerry/x-release":"^2.3.0","@vitest/coverage-v8":"^3.0.7"},"_npmOperationalInternal":{"tmp":"tmp/x2sp_0.1.0_1741176645358_0.9096579022974065","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@0x-jerry/x2sp","version":"0.1.1","author":{"name":"0x-jerry","email":"x.jerry.wang@gmail.com"},"license":"MIT","_id":"@0x-jerry/x2sp@0.1.1","maintainers":[{"name":"cwxyz","email":"x.jerry.wang@gmail.com"}],"dist":{"shasum":"6d70ebe9bd9a61e9a39f1ea3e49a45f626a0ac8d","tarball":"https://registry.npmjs.org/@0x-jerry/x2sp/-/x2sp-0.1.1.tgz","fileCount":5,"integrity":"sha512-2jl7a44g/jmHlcvPsgCqlMUPOl5xEXS44/5LYg1RtVDzAJO01BJ9ytSS0jMD+da5W+JRXje8RBzkuirhz+tBzA==","signatures":[{"sig":"MEUCIQDJCBkyqojrhwNGVf0+jXMoR8SwKQvl5WmEt2jXymgI4AIgRG8QvNvUA7/riV83Ez4VoKIuJm+ySQnvtv1roYlL5pU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4675},"main":"dist/index.js","type":"module","engines":{"node":">= 18"},"gitHead":"7975b3bcecc6e3a8ef9f9d3e9e8f2df2540e9fd5","scripts":{"dev":"tsx src/index.ts","test":"vitest","build":"tsup src/index.ts --format esm --dts --clean","ci:test":"vitest run","release":"x-release","prepublishOnly":"npm run build"},"typings":"dist/index.d.ts","_npmUser":{"name":"cwxyz","email":"x.jerry.wang@gmail.com"},"_npmVersion":"11.0.0","description":"Xray sharing protocal","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@0x-jerry/utils":"^5.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","vitest":"^3.0.7","typescript":"^5.8.2","@types/node":"^22.13.9","@biomejs/biome":"^1.9.4","@0x-jerry/x-release":"^2.3.0","@vitest/coverage-v8":"^3.0.7"},"_npmOperationalInternal":{"tmp":"tmp/x2sp_0.1.1_1741176762462_0.4323800584341233","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@0x-jerry/x2sp","version":"0.1.2","author":{"name":"0x-jerry","email":"x.jerry.wang@gmail.com"},"license":"MIT","_id":"@0x-jerry/x2sp@0.1.2","maintainers":[{"name":"cwxyz","email":"x.jerry.wang@gmail.com"}],"dist":{"shasum":"43accc63f448b7d56a5cbe5a0612ea29a3ce9871","tarball":"https://registry.npmjs.org/@0x-jerry/x2sp/-/x2sp-0.1.2.tgz","fileCount":5,"integrity":"sha512-5weTLmg3ClcpMS4ktMRXR4lW0J/4h4OcCChWm+2irx2v+I6nHY1ktjJKAUIhGp95yKt+ohaKE0aZVdaY33fFxw==","signatures":[{"sig":"MEQCIC4B4X/6CyqYDy8CYrdMWxMqYOq/Apvm1QR3fe6LZQyfAiAyGSnDF5CmCz7Rn4vYwATJGHvQ7TNREwquGekT8AYdZg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4774},"main":"dist/index.js","type":"module","engines":{"node":">= 18"},"gitHead":"baf8dc1197cd2e31b49b38de919d8dbaedcdfeb0","scripts":{"dev":"tsx src/index.ts","test":"vitest","build":"tsup src/index.ts --format esm --dts --clean","ci:test":"vitest run","release":"x-release","prepublishOnly":"npm run build"},"typings":"dist/index.d.ts","_npmUser":{"name":"cwxyz","email":"x.jerry.wang@gmail.com"},"_npmVersion":"11.0.0","description":"Xray sharing protocal","directories":{},"_nodeVersion":"22.13.0","dependencies":{"whatwg-url":"^14.1.1","@0x-jerry/utils":"^5.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","vitest":"^3.0.7","typescript":"^5.8.2","@types/node":"^22.13.9","@biomejs/biome":"^1.9.4","@types/whatwg-url":"^13.0.0","@0x-jerry/x-release":"^2.3.0","@vitest/coverage-v8":"^3.0.7"},"_npmOperationalInternal":{"tmp":"tmp/x2sp_0.1.2_1741704036338_0.1269922871874556","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@0x-jerry/x2sp","version":"0.1.3","author":{"name":"0x-jerry","email":"x.jerry.wang@gmail.com"},"license":"MIT","_id":"@0x-jerry/x2sp@0.1.3","maintainers":[{"name":"cwxyz","email":"x.jerry.wang@gmail.com"}],"dist":{"shasum":"b0e38a02a8b05969cdf565358fff90b59cd7b052","tarball":"https://registry.npmjs.org/@0x-jerry/x2sp/-/x2sp-0.1.3.tgz","fileCount":5,"integrity":"sha512-WfFUNuhh6vhA3yT20VF+kWZPrBMcll9sj15LF89AY/Se97DiJn9xXuk4l8lP03jJYUuq9+g7zjCLuCibtF/Jxg==","signatures":[{"sig":"MEUCIBrT/vpA8WDYtftyJnzLmJilPGx5HcChuNrsb4k1XG/dAiEAj7Qdbh+QTwqdYKepQa6+xyDiZi59vFaopStnBit16Jg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4917},"main":"dist/index.js","type":"module","engines":{"node":">= 18"},"gitHead":"3bc6daeaa8f3e838f22dfa6343fe81cb4dcf8511","scripts":{"dev":"tsx src/index.ts","test":"vitest","build":"tsup src/index.ts --format esm --dts --clean","ci:test":"vitest run","release":"x-release","prepublishOnly":"npm run build"},"typings":"dist/index.d.ts","_npmUser":{"name":"cwxyz","email":"x.jerry.wang@gmail.com"},"_npmVersion":"11.6.2","description":"Xray sharing protocal","directories":{},"_nodeVersion":"24.11.1","dependencies":{"whatwg-url":"^14.1.1","@0x-jerry/utils":"^5.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","vitest":"^3.0.8","typescript":"^5.8.2","@types/node":"^22.13.10","@biomejs/biome":"^1.9.4","@types/whatwg-url":"^13.0.0","@0x-jerry/x-release":"^2.4.0","@vitest/coverage-v8":"^3.0.8"},"_npmOperationalInternal":{"tmp":"tmp/x2sp_0.1.3_1771829137826_0.43266821821867585","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@0x-jerry/x2sp","version":"0.1.4","author":{"name":"0x-jerry","email":"x.jerry.wang@gmail.com"},"license":"MIT","_id":"@0x-jerry/x2sp@0.1.4","maintainers":[{"name":"cwxyz","email":"x.jerry.wang@gmail.com"}],"dist":{"shasum":"f6f82453eb171370cfd220c960201a0f4cade6ed","tarball":"https://registry.npmjs.org/@0x-jerry/x2sp/-/x2sp-0.1.4.tgz","fileCount":5,"integrity":"sha512-4uVUD4OEqfFuxmPREDiYMCVd/vjNBSvE6+Xx81TYejdkaa8GAMg8ZRyxcUssQAgvWBaXCdoAfpHVZaWbBdDWLQ==","signatures":[{"sig":"MEUCIQC706eght3lSRTlfxvuD1ASvnfTm+zG7hfpv5GxNHh8vQIgdvyM3w8m13zbpQJ+GSbyptvaVE5NqHSTqhibJVvhUKM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4917},"main":"dist/index.js","type":"module","engines":{"node":">= 18"},"gitHead":"8c5a3073a50cfd7405c6ebda5bd27b61ad0656b8","scripts":{"dev":"tsx src/index.ts","test":"vitest","build":"tsup src/index.ts --format esm --dts --clean","ci:test":"vitest run","release":"x-release","prepublishOnly":"npm run build"},"typings":"dist/index.d.ts","_npmUser":{"name":"cwxyz","email":"x.jerry.wang@gmail.com"},"_npmVersion":"11.6.2","description":"Xray sharing protocal","directories":{},"_nodeVersion":"24.11.1","dependencies":{"whatwg-url":"^16.0.1","@0x-jerry/utils":"^6.1.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^25.3.0","@biomejs/biome":"^2.4.4","@types/whatwg-url":"^13.0.0","@0x-jerry/x-release":"^2.4.1","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/x2sp_0.1.4_1771829215541_0.4873891275748621","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@0x-jerry/x2sp","version":"0.1.5","author":{"name":"0x-jerry","email":"x.jerry.wang@gmail.com"},"license":"MIT","_id":"@0x-jerry/x2sp@0.1.5","maintainers":[{"name":"cwxyz","email":"x.jerry.wang@gmail.com"}],"dist":{"shasum":"f2b030a9f84b172032dcb96a2a3c462fb4c372a6","tarball":"https://registry.npmjs.org/@0x-jerry/x2sp/-/x2sp-0.1.5.tgz","fileCount":5,"integrity":"sha512-csqlDdammh5vam/ySeS/2WURNfxP4zhnkjxjNgbKmq/wEwJv2d+HapMKlEaNeiZbG0grQDi1Rv4gHCG5dxHxsg==","signatures":[{"sig":"MEUCICKei7nIAFfMCUQGVsUB7oemwPaipwhjGPHHlJUJa/iGAiEA9UPMU2fh8uuYGy8cnb1HnLh2lwo5OL/EcDNVb0apEIM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4962},"main":"dist/index.js","type":"module","engines":{"node":">= 18"},"gitHead":"1f75a645a965f5144000950a34161dd71e6ee069","scripts":{"dev":"tsx src/index.ts","test":"vitest","build":"tsup src/index.ts --format esm --dts --clean","ci:test":"vitest run","release":"x-release","prepublishOnly":"npm run build"},"typings":"dist/index.d.ts","_npmUser":{"name":"cwxyz","email":"x.jerry.wang@gmail.com"},"_npmVersion":"11.6.2","description":"Xray sharing protocal","directories":{},"_nodeVersion":"24.11.1","dependencies":{"whatwg-url":"^16.0.1","@0x-jerry/utils":"^6.1.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^25.3.0","@biomejs/biome":"^2.4.4","@types/whatwg-url":"^13.0.0","@0x-jerry/x-release":"^2.4.1","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/x2sp_0.1.5_1771829441213_0.9972654831606651","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@0x-jerry/x2sp","version":"0.1.6","description":"Xray sharing protocal","type":"module","engines":{"node":">= 18"},"license":"MIT","author":{"name":"0x-jerry","email":"x.jerry.wang@gmail.com"},"main":"dist/index.js","typings":"dist/index.d.ts","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"scripts":{"dev":"tsx src/index.ts","test":"vitest","build":"tsup src/index.ts --format esm --dts --clean","prepublishOnly":"npm run build","release":"x-release","ci:test":"vitest run"},"devDependencies":{"@0x-jerry/x-release":"^2.4.1","@biomejs/biome":"^2.4.4","@types/node":"^25.3.0","@vitest/coverage-v8":"^4.0.18","tsup":"^8.5.1","tsx":"^4.21.0","typescript":"^5.9.3","vitest":"^4.0.18"},"dependencies":{"@0x-jerry/utils":"^6.1.1"},"gitHead":"56556f84d79ba637d65575cdb89e49f1b7b571cb","_id":"@0x-jerry/x2sp@0.1.6","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-k5yRs7sVcZejFyeBNsWm6XaQbA0cST2HG+iFVn2U5yqAM+94eqWjFxpb1eu824Je0BLzbJsznrQv1EHQZw5O5w==","shasum":"5dc38b79478df085c9beffdb2d1f50a03d710ab0","tarball":"https://registry.npmjs.org/@0x-jerry/x2sp/-/x2sp-0.1.6.tgz","fileCount":5,"unpackedSize":4863,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFmO7bQt+qHT+iFor/F4XQNISg9NwjfhNPbitYCqeFmaAiBHRfIbKEFyHkqXDe2aI7Me51HetUH/puEzuapEpDVyBA=="}]},"_npmUser":{"name":"cwxyz","email":"x.jerry.wang@gmail.com"},"directories":{},"maintainers":[{"name":"cwxyz","email":"x.jerry.wang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/x2sp_0.1.6_1771830584126_0.4223825932056775"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-05T12:10:45.280Z","modified":"2026-02-23T07:09:44.388Z","0.1.0":"2025-03-05T12:10:45.529Z","0.1.1":"2025-03-05T12:12:42.629Z","0.1.2":"2025-03-11T14:40:36.533Z","0.1.3":"2026-02-23T06:45:37.989Z","0.1.4":"2026-02-23T06:46:55.689Z","0.1.5":"2026-02-23T06:50:41.358Z","0.1.6":"2026-02-23T07:09:44.264Z"},"author":{"name":"0x-jerry","email":"x.jerry.wang@gmail.com"},"license":"MIT","description":"Xray sharing protocal","maintainers":[{"name":"cwxyz","email":"x.jerry.wang@gmail.com"}],"readme":"# X2SP(Xray Sharing Protocol)\r\n\r\nhttps://github.com/XTLS/Xray-core/discussions/716\r\n\r\n# Install\r\n\r\n```sh\r\npnpm i @0x-jerry/x2sp\r\n```\r\n\r\n# Usage\r\n\r\n```ts\r\nimport { encode, decode } from '@0x-jerry/x2sp'\r\n\r\nconst config = {\r\n  protocol: 'vmess',\r\n  uuid: '99c80931-f3f1-4f84-bffd-6eed6030f53d',\r\n  host: 'qv2ray.net',\r\n  port: 31415,\r\n  name: 'VMessTCPNaked',\r\n}\r\n\r\nconst sharingStr = encode(config) // => vmess://99c80931-f3f1-4f84-bffd-6eed6030f53d@qv2ray.net:31415#VMessTCPNaked\r\n\r\nconst config = decode(sharingStr) // => equals `config`\r\n```\r\n","readmeFilename":"readme.md"}