Inspects a piece of javascript source code or AST and "guesses" the required lodash features
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src
test
.gitignore
.jshintrc
.npmignore
Gruntfile.js
LICENSE-MIT
README.mkd
package.json

README.mkd

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 inspect = require('lodash-inspect');

console.log(inspect('assets/js/app.js'));

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