Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Releases

Packages

Used by

Contributors

Languages