npm.io
1.0.5 • Published 2 years ago

@types/smart-truncate

Licence
MIT
Version
1.0.5
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.5K

Installation

npm install --save @types/smart-truncate

Summary

This package contains type definitions for smart-truncate (https://github.com/millerized/smart-truncate).

Details

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

index.d.ts

declare function smartTruncate(
    text: string,
    length: number,
    options?: { position?: number | undefined; mark?: string | undefined },
): string;
export = smartTruncate;

Additional Details

  • Last updated: Tue, 07 Nov 2023 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Omer Yalhi.