@types/truncate-utf8-bytes
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/truncate-utf8-bytes

Summary

This package contains type definitions for truncate-utf8-bytes (https://github.com/parshap/truncate-utf8-bytes#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/truncate-utf8-bytes.

index.d.ts

/** Returns string truncated to at most length bytes in length. */
declare function truncate(string: string, byteLength: number): string;

export = truncate;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Ben Limmer.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/truncate-utf8-bytes

Weekly Downloads

18,258

Version

1.0.2

License

MIT

Unpacked Size

2.94 kB

Total Files

5

Last publish

Collaborators

  • types