word-trimwidth
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

word-trimwidth

This module truncates a list of words within a specified width, or the number of charactors.

Install

npm install word-trimwidth

Usage

const wordTrimwidth = require('word-trimwidth').default;
wordTrimwidth(['apple', 'grape', 'lemon'], 10)
//=> ['apple', 'grape']

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i word-trimwidth

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.92 kB

Total Files

8

Last publish

Collaborators

  • yukiomoto