The modern build of lodash’s _.trunc exported as a Node.js/io.js module.
Using npm:
$ {sudo -H} npm i -g npm
$ npm i --save lodash.trunc
In Node.js/io.js:
var trunc = require('lodash.trunc');
See the documentation or package source for more details.