Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash-finder

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-finder

An NPM module which searches for [Lodash][lodash]/[Underscore][underscore] methods used in your source.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 18 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc