README
lodash-inspect
Inspects a piece of javascript source code or AST and "guesses" the required lodash features
Installation
npm install -g lodash-inspect
Usage with lodash-cli
$ lodash legacy include=$(lodash-inspect assets/js/app.js)
API usage
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'))));
Development
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