friendly-truncate

Human-friendly truncation preferring word boundaries and the middle of the string.

chop-package

By calling the "chop" package it will "render" the template, replacing {{x}} with data[x] , and return the resulting string.