{"id":15537351,"url":"https://github.com/nullvoxpopuli/optional-chaining-codemod","last_synced_at":"2025-04-23T14:36:27.772Z","repository":{"id":66344801,"uuid":"212472359","full_name":"NullVoxPopuli/optional-chaining-codemod","owner":"NullVoxPopuli","description":"there should be more codemods for mundane stuff like this","archived":false,"fork":false,"pushed_at":"2023-12-15T08:16:24.000Z","size":124,"stargazers_count":16,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T00:31:42.258Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NullVoxPopuli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-10-03T01:03:47.000Z","updated_at":"2023-01-05T18:34:39.000Z","dependencies_parsed_at":"2023-02-22T02:15:51.485Z","dependency_job_id":null,"html_url":"https://github.com/NullVoxPopuli/optional-chaining-codemod","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Foptional-chaining-codemod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Foptional-chaining-codemod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Foptional-chaining-codemod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Foptional-chaining-codemod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullVoxPopuli","download_url":"https://codeload.github.com/NullVoxPopuli/optional-chaining-codemod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250453597,"owners_count":21433236,"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-02T11:56:20.173Z","updated_at":"2025-04-23T14:36:27.747Z","avatar_url":"https://github.com/NullVoxPopuli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# optional-chaining-codemod\n\nTransforms:\n\n```\nfoo \u0026\u0026 foo.bar;\nfoo.bar \u0026\u0026 foo.bar.baz;\n\n(foo || {}).bar;\n((foo || {}).bar || {}).baz;\n((foo || {}).bar || {}).baz();\n```\n\nto\n\n```\nfoo?.bar;\nfoo.bar?.baz;\n\nfoo?.bar;\nfoo?.bar?.baz;\nfoo?.bar?.baz();\n```\n\n\n## Usage\n\nTo run a specific codemod from this project, you would run the following:\n\n```\nnpx @nullvoxpopuli/optional-chaining-codemod path/of/files/ or/some**/*glob.js\n\n# or\n\nyarn global add @nullvoxpopuli/optional-chaining-codemod\noptional-chaining-codemod path/of/files/ or/some**/*glob.js\n\n# or\n\nvolta install @nullvoxpopuli/optional-chaining-codemod\noptional-chaining-codemod path/of/files/ or/some**/*glob.js\n```\n\n## Transforms\n\n\u003c!--TRANSFORMS_START--\u003e\n* [optional-chaining](transforms/optional-chaining/README.md)\n\u003c!--TRANSFORMS_END--\u003e\n\n## Contributing\n\n### Installation\n\n* clone the repo\n* change into the repo directory\n* `yarn`\n\n### Running tests\n\n* `yarn test`\n\n### Update Documentation\n\n* `yarn update-docs`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Foptional-chaining-codemod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullvoxpopuli%2Foptional-chaining-codemod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Foptional-chaining-codemod/lists"}