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