lodash-inspect

Inspects a piece of javascript source code or AST to guess the required lodash features

lodash-inspect

Inspects a piece of javascript source code or AST and "guesses" the required lodash features

npm install -g lodash-inspect
$ lodash legacy include=$(lodash-inspect assets/js/app.js)
var fs = require('fs');
var inspect = require('lodash-inspect');
var acorn = require('acorn');
 
console.log(inspect(acorn.parse(fs.readFileSync('assets/js/app.js', 'utf8'))));

Clone, install dependencies and re-test whenever some file is modified:

git clone git://github.com/tarruda/lodash-inspect.git
cd lodash-inspect
npm install
grunt