0.0.2 • Published 11 years ago

lodash-finder v0.0.2

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

lodash-finder

An NPM module which searches for Lodash/Underscore methods used in your source.

You might want to use this to create custom Lodash builds, using its include flag.

lodash --include=all,the,functions,you,are,using

Usage

Warning this library is so alpha it hurts. Don't use it.

var lodashFinder = require('lodash-finder');
var functionsUsed = lodashFinder(sourceOfFile);
// functionsUsed == ['each', 'map', 'template']

TODO

  • Publish to NPM
  • Handle chaining method calls
  • Check for local aliasing of _ (eg: var _ = []; _.each())
  • Helper function which will actually execute the lodash build with the given methods.
  • Ability to take a file or directory name as input