@types/yazl
TypeScript icon, indicating that this package has built-in type declarations

2.4.5 • Public • Published

Installation

npm install --save @types/yazl

Summary

This package contains type definitions for yazl (https://github.com/thejoshwolfe/yazl).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yazl.

index.d.ts

/// <reference types="node" />

import { Buffer } from "buffer";

export interface Options {
    mtime: Date;
    mode: number;
    compress: boolean;
    forceZip64Format: boolean;
}

export interface ReadStreamOptions extends Options {
    size: number;
}

export interface DirectoryOptions {
    mtime: Date;
    mode: number;
}

export interface EndOptions {
    forceZip64Format: boolean;
}

export interface DosDateTime {
    date: number;
    time: number;
}

export class ZipFile {
    addFile(realPath: string, metadataPath: string, options?: Partial<Options>): void;
    outputStream: NodeJS.ReadableStream;
    addReadStream(input: NodeJS.ReadableStream, metadataPath: string, options?: Partial<ReadStreamOptions>): void;
    addBuffer(buffer: Buffer, metadataPath: string, options?: Partial<Options>): void;
    end(options?: EndOptions, finalSizeCallback?: () => void): void;

    addEmptyDirectory(metadataPath: string, options?: Partial<DirectoryOptions>): void;
    dateToDosDateTime(jsDate: Date): DosDateTime;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by taoqf, and Sean Marvi Oliver Genabe.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/yazl

Weekly Downloads

86,600

Version

2.4.5

License

MIT

Unpacked Size

4.84 kB

Total Files

5

Last publish

Collaborators

  • types