PHP 7.4.33
Preview: index.d.ts Size: 792 B
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/safe-identifier/index.d.ts
/**
 * Sanitize a string for use as an identifier name
 *
 * Replaces invalid character sequences with _ and may add a _ prefix if the
 * resulting name would conflict with a JavaScript reserved name.
 *
 * @param key The desired identifier name
 * @param unique Append a hash of the key to the result
 */
export declare function identifier(key: string, unique?: boolean): string

/**
 * Sanitize a string for use as a property name
 *
 * By default uses `obj.key` notation, falling back to `obj["key"]` if the key
 * contains invalid characters or is an ECMAScript 3rd Edition reserved word
 * (required by IE8).
 *
 * @param obj If empty, returns only the possibly quoted key
 * @param key The property name
 */
export function property(obj: string | null | undefined, key: string): string

Directory Contents

Dirs: 0 × Files: 7
Name Size Perms Modified Actions
792 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
866 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
832 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
750 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
862 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
1.38 KB lrw-r--r-- 2025-06-16 05:45:39
Edit Download
808 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).