1.0.17 • Published 4 years ago

@vscodeshift/apply-jscodeshift v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@vscodeshift/apply-jscodeshift

CircleCI Coverage Status semantic-release Commitizen friendly npm version

apply jscodeshift to active text editor, passing selected range as options.

Tries to intelligently determine the parser. If @babel/core is present in the project, it will be used along with the project's babel config (except for ts/x files).

applyTransform(transform, [options])

import applyTransform from '@vscodeshift/apply-jscodeshift'

Applies the given jscodeshift transform to the active text editor.

Arguments

transform (jscodeshift.Transform, required)

The transform to apply.

options (jscodeshift.Options, optional)

Options to pass to the transform. By default, selectionStart and selectionEnd will be passed to the transform.

Returns (Promise<string | void | null | undefined>)

A promise that will resolve to the output of the transform (which will have also been applied to the active text editor if it returns a string)

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago