The lodash method `_.truncate` exported as a module.
npm install lodash.truncateThe lodash method _.truncate exported as a Node.js module.
Using npm:
``bash`
$ {sudo -H} npm i -g npm
$ npm i --save lodash.truncate
In Node.js:
`js``
var truncate = require('lodash.truncate');
See the documentation or package source for more details.