MCPcopy Create free account
hub / github.com/astercloud/aster / toJsonPointer

Function toJsonPointer

ui/src/protocol/path-resolver.ts:121–126  ·  view source on GitHub ↗
(tokens: string[])

Source from the content-addressed store, hash-verified

119 * @returns JSON Pointer 路径
120 */
121export function toJsonPointer(tokens: string[]): string {
122 if (tokens.length === 0) {
123 return '';
124 }
125 return '/' + tokens.map(encodeJsonPointerToken).join('/');
126}
127
128/**
129 * 解析相对路径

Callers 4

resolvePathFunction · 0.85
getParentPathFunction · 0.85
joinPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected