UNPKG

@types/gulp-size

Version:
94 lines (77 loc) 2.31 kB
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-size/index.d.ts) ````ts /// <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: Tue, 07 Nov 2023 03:09:37 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) # Credits These definitions were written by [Tanguy Krotoff](https://github.com/tkrotoff), and [Remisery](https://github.com/remisery).