CodeFile

Beta
Beta

CodeFile

CodeFile

A class representing a code file in a Framer project.

Methods & Properties

The current content/source code of the file.

The current content/source code of the file.

Array of exports available in this code file.

Array of exports available in this code file.

Get all versions/history of this code file.

Get all versions/history of this code file.

Beta

The unique identifier of the code file.

Beta

The unique identifier of the code file.

Beta

Run linting on the code file content.

Beta

Run linting on the code file content.

Beta

The name of the code file (e.g., "MyComponent.tsx").

Beta

The name of the code file (e.g., "MyComponent.tsx").

Beta

The file system path of the code file.

Beta

The file system path of the code file.

Remove the code file from the project.

Remove the code file from the project.

Rename the code file.

Rename the code file.

Set the content of the code file.

Set the content of the code file.