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

x/zipjs/index.js>ZipDirectoryEntry#addText

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

Adds an entry with content provided as text

Parameters

name: string

The relative filename of the entry.

text: string

The text.

Returns

ZipFileEntry<string, string>

A ZipFileEntry instance.