4.0.3 • Published 7 months ago

@types/gulp-size v4.0.3

Weekly downloads
4,798
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/gulp-size

Summary

This package contains type definitions for gulp-size (https://github.com/sindresorhus/gulp-size).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-size.

index.d.ts

// Type definitions for gulp-size 4.0
// Project: https://github.com/sindresorhus/gulp-size
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
//                 Remisery <https://github.com/remisery>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

declare namespace size {
    interface Options {
        /**
         * Displays the size of every file instead of just the total size.
         *
         * @default false
         */
        showFiles?: boolean | undefined;

        /**
         * Displays the gzipped size.
         *
         * @default false
         */
        gzip?: boolean | undefined;

        /**
         * Give it a title so it's possible to distinguish the output of multiple instances logging at once.
         *
         * @default ''
         */
        title?: string | undefined;

        /**
         * Displays prettified size: 1337 B → 1.34 kB.
         *
         * @default true
         */
        pretty?: boolean | undefined;

        /**
         * Displays the total of all files.
         *
         * @default true
         */
        showTotal?: boolean | undefined;

        /**
         * Displays the brotli compressed size.
         *
         * @default false
         */
        brotli?: boolean | undefined;

        /**
         * Displays the uncompressed size.
         *
         * @default false
         */
        uncompressed?: boolean | undefined;
    }

    interface SizeStream extends NodeJS.ReadWriteStream {
        /**
         * The total size of all files in bytes.
         *
         * @example 12423000
         */
        size: number;

        /**
         * Prettified version of .size.
         *
         * @example 14 kB
         */
        prettySize: string;
    }
}

declare function size(options?: size.Options): size.SizeStream;

export = size;

Additional Details

  • Last updated: Sat, 05 Mar 2022 20:01:45 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Tanguy Krotoff, and Remisery.

4.0.3

7 months ago

4.0.2

7 months ago

4.0.1

1 year ago

4.0.0

2 years ago

2.1.2

3 years ago

2.1.1

7 years ago

2.1.0

7 years ago

1.2.30

7 years ago

1.2.29

8 years ago

1.2.28

8 years ago

1.2.27-alpha

8 years ago

1.2.26-alpha

8 years ago

1.2.25-alpha

8 years ago

1.2.24-alpha

8 years ago

1.2.23-alpha

8 years ago

1.2.22-alpha

8 years ago

1.2.21-alpha

8 years ago

1.2.16-alpha

8 years ago

1.2.15-alpha

8 years ago