{"id":15698995,"url":"https://github.com/pgilad/find-used-lodash","last_synced_at":"2025-05-09T02:16:10.656Z","repository":{"id":14379463,"uuid":"17089598","full_name":"pgilad/find-used-lodash","owner":"pgilad","description":"Use esprima to find and detect used lodash packages","archived":false,"fork":false,"pushed_at":"2015-05-22T17:27:13.000Z","size":264,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-09T02:16:05.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgilad.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-22T17:10:28.000Z","updated_at":"2017-12-05T00:15:10.000Z","dependencies_parsed_at":"2022-08-27T00:42:54.930Z","dependency_job_id":null,"html_url":"https://github.com/pgilad/find-used-lodash","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Ffind-used-lodash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Ffind-used-lodash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Ffind-used-lodash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Ffind-used-lodash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgilad","download_url":"https://codeload.github.com/pgilad/find-used-lodash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253176441,"owners_count":21866143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T19:37:17.959Z","updated_at":"2025-05-09T02:16:10.633Z","avatar_url":"https://github.com/pgilad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# find-used-lodash\n\u003e Use Esprima to find and detect used Lodash packages\n\n[![NPM Version](http://img.shields.io/npm/v/find-used-lodash.svg?style=flat)](https://npmjs.org/package/find-used-lodash)\n[![NPM Downloads](http://img.shields.io/npm/dm/find-used-lodash.svg?style=flat)](https://npmjs.org/package/find-used-lodash)\n[![Build Status](http://img.shields.io/travis/pgilad/find-used-lodash.svg?style=flat)](https://travis-ci.org/pgilad/find-used-lodash)\n\nUseful for preparing an array to pass to a build task in order to build only used packages.\n\n* Please see [Lodash](http://lodash.com/) for usable packages.\n* Checkout [Lodash custom build tool](http://lodash.com/custom-builds) for possible uses.\n\n**Important notice** Chained Lodash packages are currently not detected.\n\n## Install\n\n```\nnpm install --save-dev find-used-lodash\n```\n\n## Example\n\n### General Usage\n\n```js\nvar findUsedLodash = require('find-used-lodash');\n\nconsole.log(findUsedLodash('_.each([\"a\", \"b\"], doSomething)');\n//=\u003e ['each']\n```\n\n### Use in a build task (grunt,gulp)...\n\n```js\nvar findUsedLodash = require('find-used-lodash');\n\nvar fileContents = fs.readFileSync('targetFile.js', 'utf8'); //or get it from file stream\nvar results = findUsedLodash(fileContents);\n\nvar commaResults = results.join(',');\n\n//then execute lodash command line with **lodash include=commaResults**\n```\n\n## Options\n\n```js\n@param {String} jsFileContents - the js file contents as a string\n@return {String[]} array of used Lodash packages.\n```\n\n## License\n\nMIT @[Gilad Peleg](http://giladpeleg.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgilad%2Ffind-used-lodash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgilad%2Ffind-used-lodash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgilad%2Ffind-used-lodash/lists"}