Skip to content

yukiomoto/word-trimwidth

Repository files navigation

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

About

Truncate a list of words with a specified width

Resources

Stars

Watchers

Forks

Packages

No packages published