5.0.2 • Published 6 months ago
@types/utf-8-validate v5.0.2
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.