{"id":13493703,"url":"https://github.com/lodash/babel-plugin-lodash","last_synced_at":"2025-10-02T23:35:39.967Z","repository":{"id":35688067,"uuid":"39964644","full_name":"lodash/babel-plugin-lodash","owner":"lodash","description":"Modular Lodash builds without the hassle.","archived":true,"fork":false,"pushed_at":"2023-06-22T20:08:56.000Z","size":611,"stargazers_count":1951,"open_issues_count":25,"forks_count":98,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-09-30T22:27:16.519Z","etag":null,"topics":["babel","lodash"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lodash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-07-30T17:56:37.000Z","updated_at":"2025-09-26T12:21:49.000Z","dependencies_parsed_at":"2024-06-18T11:07:35.751Z","dependency_job_id":"0f60c58b-dceb-4e2b-98f1-217ad6b153ba","html_url":"https://github.com/lodash/babel-plugin-lodash","commit_stats":{"total_commits":440,"total_committers":15,"mean_commits":"29.333333333333332","dds":"0.20227272727272727","last_synced_commit":"7d2342a3b849c3c8ef3b2d904b7e2394205466ff"},"previous_names":["megawac/babel-plugin-lodash"],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/lodash/babel-plugin-lodash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodash%2Fbabel-plugin-lodash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodash%2Fbabel-plugin-lodash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodash%2Fbabel-plugin-lodash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodash%2Fbabel-plugin-lodash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lodash","download_url":"https://codeload.github.com/lodash/babel-plugin-lodash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodash%2Fbabel-plugin-lodash/sbom","scorecard":{"id":596878,"data":{"date":"2025-08-11","repo":{"name":"github.com/lodash/babel-plugin-lodash","commit":"7d2342a3b849c3c8ef3b2d904b7e2394205466ff"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.8,"checks":[{"name":"Code-Review","score":1,"reason":"Found 4/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"43 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-c6rq-rjc2-86v2","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T23:21:11.694Z","repository_id":35688067,"created_at":"2025-08-20T23:21:11.694Z","updated_at":"2025-08-20T23:21:11.694Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278034323,"owners_count":25918918,"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","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["babel","lodash"],"created_at":"2024-07-31T19:01:17.945Z","updated_at":"2025-10-02T23:35:39.646Z","avatar_url":"https://github.com/lodash.png","language":"JavaScript","readme":"# babel-plugin-lodash\n\nA simple transform to cherry-pick Lodash modules so you don’t have to.\n\nCombine with [lodash-webpack-plugin](https://www.npmjs.com/package/lodash-webpack-plugin)\nfor even smaller cherry-picked builds!\n\n## Install\n\n```shell\n$ npm i --save lodash\n$ npm i --save-dev babel-plugin-lodash @babel/cli @babel/preset-env\n```\n\n## Example\n\nTransforms\n```js\nimport _ from 'lodash'\nimport { add } from 'lodash/fp'\n\nconst addOne = add(1)\n_.map([1, 2, 3], addOne)\n```\n\nroughly to\n```js\nimport _add from 'lodash/fp/add'\nimport _map from 'lodash/map'\n\nconst addOne = _add(1)\n_map([1, 2, 3], addOne)\n```\n\n## Usage\n\n###### .babelrc\n```json\n{\n  \"plugins\": [\"lodash\"],\n  \"presets\": [[\"@babel/env\", { \"targets\": { \"node\": 6 } }]]\n}\n```\n\nSet plugin options using an array of `[pluginName, optionsObject]`.\n```json\n{\n  \"plugins\": [[\"lodash\", { \"id\": \"lodash-compat\", \"cwd\": \"some/path\" }]],\n  \"presets\": [[\"@babel/env\", { \"targets\": { \"node\": 6 } }]]\n}\n```\n\nThe `options.id` can be an array of ids.\n```json\n{\n  \"plugins\": [[\"lodash\", { \"id\": [\"async\", \"lodash-bound\"] }]],\n  \"presets\": [[\"@babel/env\", { \"targets\": { \"node\": 6 } }]]\n}\n```\n\n###### Babel CLI\n```sh\n$ babel --plugins lodash --presets @babel/es2015 script.js\n```\n\n###### Babel API\n```js\nrequire('babel-core').transform('code', {\n  'plugins': ['lodash'],\n  'presets': [['@babel/env', { 'targets': { 'node': 6 } }]]\n})\n```\n\n###### webpack.config.js\n```js\n'module': {\n  'loaders': [{\n    'loader': 'babel-loader',\n    'test': /\\.js$/,\n    'exclude': /node_modules/,\n    'query': {\n      'plugins': ['lodash'],\n      'presets': [['@babel/env', { 'targets': { 'node': 6 } }]]\n    }\n  }]\n}\n```\n\n## FAQ\n\n\u003e Can this plugin produce ES2015 imports rather than CommonJS imports?\n\nThis plugin produces ES2015 imports by default. The\n[`@babel/plugin-transform-modules-commonjs`](https://www.npmjs.com/package/@babel/plugin-transform-modules-commonjs)\nplugin, which is included in the [`@babel/preset-es2015`](https://www.npmjs.com/package/@babel/preset-es2015)\npreset, transforms ES2015 `import` statements to CommonJS. Omit it from your\npreset to preserve ES2015 style imports.\n\n## Limitations\n\n* You must use ES2015 imports to load Lodash\n* Babel \u003c 6 \u0026 Node.js \u003c 4 aren’t supported\n* Chain sequences aren’t supported. See [this blog post](https://medium.com/making-internets/why-using-chain-is-a-mistake-9bc1f80d51ba) for alternatives.\n* Modularized [method packages](https://www.npmjs.com/browse/keyword/lodash-modularized) aren’t supported\n","funding_links":[],"categories":["JavaScript","Plugins"],"sub_categories":["Module Resolution"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flodash%2Fbabel-plugin-lodash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flodash%2Fbabel-plugin-lodash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flodash%2Fbabel-plugin-lodash/lists"}