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