0.0.2 • Published 11 years ago

lodash-inspect v0.0.2

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

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