{"id":22382506,"url":"https://github.com/jcoreio/jscodeshift-replace-lodash-method-packages","last_synced_at":"2025-08-25T13:04:48.908Z","repository":{"id":40787570,"uuid":"137973886","full_name":"jcoreio/jscodeshift-replace-lodash-method-packages","owner":"jcoreio","description":"jscodeshift script to convert import 'lodash.get' to import 'lodash/get' etc.","archived":false,"fork":false,"pushed_at":"2022-12-07T11:12:41.000Z","size":522,"stargazers_count":6,"open_issues_count":14,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T22:48:01.034Z","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/jcoreio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-20T03:11:35.000Z","updated_at":"2021-01-31T03:04:06.000Z","dependencies_parsed_at":"2023-01-24T16:46:05.506Z","dependency_job_id":null,"html_url":"https://github.com/jcoreio/jscodeshift-replace-lodash-method-packages","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fjscodeshift-replace-lodash-method-packages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fjscodeshift-replace-lodash-method-packages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fjscodeshift-replace-lodash-method-packages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fjscodeshift-replace-lodash-method-packages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcoreio","download_url":"https://codeload.github.com/jcoreio/jscodeshift-replace-lodash-method-packages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228209939,"owners_count":17885595,"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-12-05T00:13:17.763Z","updated_at":"2024-12-05T00:13:18.570Z","avatar_url":"https://github.com/jcoreio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jscodeshift-replace-lodash-method-packages\n\n[![Build Status](https://travis-ci.org/jcoreio/jscodeshift-replace-lodash-method-packages.svg?branch=master)](https://travis-ci.org/jcoreio/jscodeshift-replace-lodash-method-packages)\n[![Coverage Status](https://codecov.io/gh/jcoreio/jscodeshift-replace-lodash-method-packages/branch/master/graph/badge.svg)](https://codecov.io/gh/jcoreio/jscodeshift-replace-lodash-method-packages)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\nThis is a codemod script for use with\n[JSCodeshift](https://github.com/facebook/jscodeshift) that helps convert lodash\nmethod package imports/requires (e.g. `lodash.mapvalues`) to imports from lodash\nsubmodules (e.g. `lodash/mapValues`)\n\n## Setup \u0026 Run\n\n1. `yarn global add jscodeshift`\n1. `git clone https://github.com/jcoreio/jscodeshift-replace-lodash-method-packages.git`\n1. Run `yarn install` in the cloned directory\n1. `jscodeshift -t \u003cpath/to\u003e/jscodeshift-replace-lodash-method-packages/index.js \u003cpath\u003e`\n   * `path` - files or directory to transform;\n   * use the `-d` option for a dry-run and use `-p` to print the output for comparison;\n   * use the `--extensions` option if your files have different extensions than `.js` (for example, `--extensions js,jsx`);\n   * if you use flowtype, you might also need to use `--parser=flow` or `--parser=babylon`;\n   * see all available [jscodeshift options](https://github.com/facebook/jscodeshift#usage-cli).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fjscodeshift-replace-lodash-method-packages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcoreio%2Fjscodeshift-replace-lodash-method-packages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fjscodeshift-replace-lodash-method-packages/lists"}