codemod(name, arguments)

Executes codemod from registry in current working directory.

import { codemod } from '@codemod.com/workflow'

await codemod('openFeature-replace-feature-flag', {
    key: 'someFeatureFlag',
    value: 'replacement',
})

Parameters

name
string
required

Codemod name as published in Codemod Registry.

arguments
string | number | boolean | (string | number | boolean)[]

Codemod arguments. Arguments are passed as key-value pair objects.

Returns