Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/archive.ts>Tarball#replace

A JavaScript extension package for building strong and modern applications.
Latest
method Tarball.prototype.replace
Re-export
import { Tarball } from "https://deno.land/x/ayonli_jsext@v0.9.72/archive.ts";

Replaces an entry in the archive with new data.

This function returns true if the entry is successfully replaced, or false if the entry does not exist or the entry kind of the new data is incompatible with the old one.

Parameters

relativePath: string
data:
| string
| ArrayBuffer
| ArrayBufferView
| ReadableStream<Uint8Array>
| Blob
| null
optional
info: Partial<Omit<TarEntry, "relativePath">> = [UNSUPPORTED]

Returns

boolean