INNER CODE UNIT · TypeScript

getRegisteredCodecs

gildas-lormeau/zip.js · index.d.ts:293

export function getRegisteredCodecs(): CodecDefinition[];

/**
 * Returns the compression methods supported in the current environment and configuration: the
 * built-in methods followed by the codecs registered with {@link registerCodec}, in registration
 * order.
 *
 * @remarks
 * The support of the built-in methods is resolved against the compression streams available when
 * the function is called, i.e. the classes set with {@link configure} and the implementations
 * embedded in the build. A caller can test whether an entry is readable by looking up
 * {@link EntryMetaData#compressionMethod} in the result and checking
 * {@link EntryMetaData#encrypted}; `FileEntry#getData` remains the authority.
 *
 * @returns The supported compression methods.
 */
export function getSupportedCompressionMethods(): SupportedCompressionMethod[];

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…