@types/decompress
TypeScript definitions for decompress
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/decompress 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/decompress

Summary

This package contains type definitions for decompress (https://github.com/kevva/decompress#readme).

Details

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

index.d.ts

// Type definitions for decompress 4.2
// Project: https://github.com/kevva/decompress#readme
// Definitions by: York Yao <https://github.com/plantain-00>
//                 Jesse Bethke <https://github.com/jbethke>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

export = decompress;

declare function decompress(
    input: string | Buffer,
    output?: string | decompress.DecompressOptions,
    opts?: decompress.DecompressOptions,
): Promise<decompress.File[]>;

declare namespace decompress {
    interface File {
        data: Buffer;
        mode: number;
        mtime: string;
        path: string;
        type: string;
    }

    interface DecompressOptions {
        /**
         * Filter out files before extracting
         */
        filter?(file: File): boolean;
        /**
         * Map files before extracting
         */
        map?(file: File): File;
        /**
         * Array of plugins to use.
         * Default: [decompressTar(), decompressTarbz2(), decompressTargz(), decompressUnzip()]
         */
        plugins?: any[] | undefined;
        /**
         * Remove leading directory components from extracted files.
         * Default: 0
         */
        strip?: number | undefined;
    }
}

Additional Details

  • Last updated: Fri, 22 Sep 2023 20:29:40 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by York Yao, and Jesse Bethke.

Current Tags

  • 4.2.5                                ...           latest (3 years ago)
  • 4.2.3                                ...           ts2.0 (8 years ago)
  • 4.2.3                                ...           ts2.1 (8 years ago)
  • 4.2.3                                ...           ts2.2 (8 years ago)
  • 4.2.3                                ...           ts2.3 (8 years ago)
  • 4.2.3                                ...           ts2.4 (8 years ago)
  • 4.2.3                                ...           ts2.5 (8 years ago)
  • 4.2.3                                ...           ts2.6 (8 years ago)
  • 4.2.3                                ...           ts2.7 (8 years ago)
  • 4.2.3                                ...           ts2.8 (8 years ago)
  • 4.2.3                                ...           ts2.9 (8 years ago)
  • 4.2.3                                ...           ts3.0 (8 years ago)
  • 4.2.3                                ...           ts3.1 (8 years ago)
  • 4.2.3                                ...           ts3.2 (8 years ago)
  • 4.2.3                                ...           ts3.3 (8 years ago)
  • 4.2.3                                ...           ts3.4 (8 years ago)
  • 4.2.3                                ...           ts3.5 (8 years ago)
  • 4.2.4                                ...           ts3.6 (5 years ago)
  • 4.2.4                                ...           ts3.7 (5 years ago)
  • 4.2.4                                ...           ts3.8 (5 years ago)
  • 4.2.4                                ...           ts3.9 (5 years ago)
  • 4.2.4                                ...           ts4.0 (5 years ago)
  • 4.2.4                                ...           ts4.1 (5 years ago)
  • 4.2.4                                ...           ts4.2 (5 years ago)
  • 4.2.4                                ...           ts4.3 (5 years ago)
  • 4.2.4                                ...           ts4.4 (5 years ago)
  • 4.2.5                                ...           ts4.5 (3 years ago)
  • 4.2.5                                ...           ts4.6 (3 years ago)
  • 4.2.5                                ...           ts4.7 (3 years ago)
  • 4.2.5                                ...           ts4.8 (3 years ago)
  • 4.2.5                                ...           ts4.9 (3 years ago)
  • 4.2.5                                ...           ts5.0 (3 years ago)
  • 4.2.5                                ...           ts5.1 (3 years ago)
  • 4.2.5                                ...           ts5.2 (3 years ago)
  • 4.2.5                                ...           ts5.3 (3 years ago)

6 Versions

  • 4.2.5                                ...           3 years ago
  • 4.2.4                                ...           5 years ago
  • 4.2.3                                ...           8 years ago
  • 4.2.2                                ...           8 years ago
  • 4.2.1                                ...           8 years ago
  • 4.2.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |