Sha256: e4e191703c8bf0ea970fa05e02cd367e256362c228a5dc3775ac5eec3db4b569
Contents?: true
Size: 302 Bytes
Versions: 69
Compression:
Stored size: 302 Bytes
Contents
var toString = require('../lang/toString'); var truncate = require('./truncate'); /** * Truncate string at full words. */ function crop(str, maxChars, append) { str = toString(str); return truncate(str, maxChars, append, true); } module.exports = crop;
Version data entries
69 entries across 69 versions & 2 rubygems