| Server IP : 185.208.173.17 / Your IP : 87.236.161.98 Web Server : Microsoft-IIS/10.0 System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64 User : IUSR ( 0) PHP Version : 7.4.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/parsmega.nuxt/node_modules/@jsonjoy.com/json-pointer/lib/ |
Upload File : |
import type { Path } from './types';
/**
* Un-escapes a JSON pointer path component.
*/
export declare function unescapeComponent(component: string): string;
/**
* Escapes a JSON pointer path component.
*/
export declare function escapeComponent(component: string): string;
/**
* Convert JSON pointer like "/foo/bar" to array like ["", "foo", "bar"], while
* also un-escaping reserved characters.
*/
export declare function parseJsonPointer(pointer: string): Path;
/**
* Escape and format a path array like ["", "foo", "bar"] to JSON pointer
* like "/foo/bar".
*/
export declare function formatJsonPointer(path: Path): string;
export declare const toPath: (pointer: string | Path) => Path;
/**
* Returns true if `parent` contains `child` path, false otherwise.
*/
export declare function isChild(parent: Path, child: Path): boolean;
export declare function isPathEqual(p1: Path, p2: Path): boolean;
/**
* Returns true if JSON Pointer points to root value, false otherwise.
*/
export declare const isRoot: (path: Path) => boolean;
/**
* Returns parent path, e.g. for ['foo', 'bar', 'baz'] returns ['foo', 'bar'].
*/
export declare function parent(path: Path): Path;
/**
* Check if path component can be a valid array index.
*/
export declare function isValidIndex(index: string | number): boolean;
export declare const isInteger: (str: string) => boolean;