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

5.0.2 • 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

/// <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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by OpportunityLiu.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/utf-8-validate

Weekly Downloads

47,378

Version

5.0.2

License

MIT

Unpacked Size

3.26 kB

Total Files

5

Last publish

Collaborators

  • types