Skip to content

API reference > @kontsedal/olas-codemod > runCodemod

runCodemod() function ​

Run the transforms over the files in memory, in order, and report what each did.

Signature:

typescript
export declare function runCodemod(files: readonly SourceFile[], options: RunOptions): RunResult;

Parameters ​

Parameter

Type

Description

files

readonly SourceFile[]

options

RunOptions

Returns:

RunResult

Released under the MIT License.