Non Productive Monday

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

    5.0.0 • Public • Published

    Installation

    npm install --save @types/utf-8-validate

    Summary

    This package contains type definitions for utf-8-validate (https://github.com/websockets/utf-8-validate).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/utf-8-validate.

    index.d.ts

    // Type definitions for utf-8-validate 5.0
    // Project: https://github.com/websockets/utf-8-validate
    // Definitions by: OpportunityLiu <https://github.com/OpportunityLiu>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <reference types="node" />
    
    /**
     * Checks whether a buffer contains valid UTF-8.
     *
     * @param buffer - The buffer to check.
     *
     * @returns `true` if the buffer contains only correct UTF-8, else `false`.
     */
    declare function isValidUTF8(buffer: Buffer): boolean;
    export = isValidUTF8;

    Additional Details

    • Last updated: Fri, 28 May 2021 21:01:26 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by OpportunityLiu.

    Keywords

    none

    Install

    npm i @types/utf-8-validate

    DownloadsWeekly Downloads

    9,155

    Version

    5.0.0

    License

    MIT

    Unpacked Size

    3.76 kB

    Total Files

    4

    Last publish

    Collaborators

    • types