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