0.1.2 • Published 6 months ago

@types/is-piped v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/is-piped

Summary

This package contains type definitions for is-piped (https://github.com/Qix-/node-is-piped).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-piped.

index.d.ts

// Type definitions for is-piped 0.1
// Project: https://github.com/Qix-/node-is-piped
// Definitions by: BendingBender <https://github.com/bendingbender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export = isPiped;

declare const isPiped: isPiped;

interface isPiped {
    /**
     * Determines if an inbound file descriptor is piped or not, across platforms.
     *
     * @example
     * import * as isPiped from 'is-piped';
     *
     * console.log(isPiped.in(0));
     *
     * // {
     * //     piped: false,
     * //     confident: false
     * // }
     */
    in: (fd: number) => isPiped.IsPipedResult;
    /**
     * Determines if an outbound file descriptor is piped or not, across platforms.
     *
     * @example
     * import * as isPiped from 'is-piped';
     *
     * console.log(isPiped.out(1));
     *
     * // {
     * //     piped: false,
     * //     confident: false
     * // }
     */
    out: (fd: number) => isPiped.IsPipedResult;
}

declare namespace isPiped {
    interface IsPipedResult {
        /**
         * Whether or not it's a pipe.
         */
        piped: boolean;
        /**
         * Whether or not we're absolutely sure of that.
         */
        confident: boolean;
    }
}

Additional Details

  • Last updated: Thu, 02 Dec 2021 01:31:03 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by BendingBender.

0.1.2

6 months ago

0.1.1

7 months ago

0.1.0

2 years ago