{"id":23174578,"url":"https://github.com/vscodeshift/apply-jscodeshift","last_synced_at":"2025-10-29T03:36:03.429Z","repository":{"id":40783802,"uuid":"234609201","full_name":"vscodeshift/apply-jscodeshift","owner":"vscodeshift","description":"apply jscodeshift to active text editor in VSCode, passing selected range as options","archived":false,"fork":false,"pushed_at":"2023-01-05T05:16:36.000Z","size":3477,"stargazers_count":2,"open_issues_count":22,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T09:15:15.008Z","etag":null,"topics":["codemods","jscodeshift","vscode"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/vscodeshift.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":"2020-01-17T18:16:26.000Z","updated_at":"2023-12-23T07:25:18.000Z","dependencies_parsed_at":"2023-02-03T12:30:46.899Z","dependency_job_id":null,"html_url":"https://github.com/vscodeshift/apply-jscodeshift","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vscodeshift%2Fapply-jscodeshift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vscodeshift%2Fapply-jscodeshift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vscodeshift%2Fapply-jscodeshift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vscodeshift%2Fapply-jscodeshift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vscodeshift","download_url":"https://codeload.github.com/vscodeshift/apply-jscodeshift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271492,"owners_count":20911586,"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":["codemods","jscodeshift","vscode"],"created_at":"2024-12-18T05:30:13.998Z","updated_at":"2025-10-29T03:35:58.387Z","avatar_url":"https://github.com/vscodeshift.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @vscodeshift/apply-jscodeshift\n\n[![CircleCI](https://circleci.com/gh/vscodeshift/apply-jscodeshift.svg?style=svg)](https://circleci.com/gh/vscodeshift/apply-jscodeshift)\n[![Coverage Status](https://codecov.io/gh/vscodeshift/apply-jscodeshift/branch/master/graph/badge.svg)](https://codecov.io/gh/vscodeshift/apply-jscodeshift)\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[![npm version](https://badge.fury.io/js/%40vscodeshift%2Fapply-jscodeshift.svg)](https://badge.fury.io/js/%40vscodeshift%2Fapply-jscodeshift)\n\napply jscodeshift to active text editor, passing selected range as options.\n\nTries to intelligently determine the parser. If `@babel/core` is present in the project,\nit will be used along with the project's babel config (except for ts/x files).\n\n## `applyTransform(transform, [options])`\n\n```ts\nimport applyTransform from '@vscodeshift/apply-jscodeshift'\n```\n\nApplies the given `jscodeshift` transform to the active text editor.\n\n### Arguments\n\n#### `transform` (`jscodeshift.Transform`, **required**)\n\nThe transform to apply.\n\n#### `options` (`jscodeshift.Options`, _optional_)\n\nOptions to pass to the transform. By default, `selectionStart`\nand `selectionEnd` will be passed to the transform.\n\n### Returns (`Promise\u003cstring | void | null | undefined\u003e`)\n\nA promise that will resolve to the output of the transform\n(which will have also been applied to the active text editor\nif it returns a string)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvscodeshift%2Fapply-jscodeshift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvscodeshift%2Fapply-jscodeshift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvscodeshift%2Fapply-jscodeshift/lists"}