Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/zipjs/index.d.ts>ZipDirectoryEntry#addText

JavaScript library to zip and unzip files supporting multi-core compression, compression streams, zip64, split files and encryption.
Go to Latest
method ZipDirectoryEntry.prototype.addText
import { ZipDirectoryEntry } from "https://deno.land/x/zipjs@v2.7.40/index.d.ts";

Adds an entry with content provided as text

Parameters

name: string

The relative filename of the entry.

text: string

The text.

optional
options: ZipWriterAddDataOptions

The options.

Returns

ZipFileEntry<string, string>

A ZipFileEntry instance.