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']

Package Sidebar

Install

npm i word-trimwidth

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

3.92 kB

Total Files

8

Last publish

Collaborators

  • yukiomoto