# File Transformer

File transformer feature can be found in **Team workspace**. You can hover over to the left sidebar and click **File Transformer**.

<figure><img src="/files/nsIFoEjjEKMWPgkkioAb" alt=""><figcaption></figcaption></figure>

Click **Create file transformer** to start writing your script. Enter a name, then choose the type of file transformer:

* Select **Import** to create a script for importing files into a project.
* Select **Export** to create a script for exporting files from a project.

<figure><img src="/files/cbFVlonlUNP622J0BrI2" alt=""><figcaption></figcaption></figure>

## Import external dependencies

In some cases, you may need to import libraries to help you write custom script. You can import external libraries hosted in the NPM public registry by adding an import statement:

```typescript
import { uniq } from 'lodash';
```

### **Notes**

* Auto-complete doesn't work on external libraries.
* The latest version of the library is installed by default, which may introduce incompatibilities if the update has breaking changes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.datasaur.ai/workspace-management/file-transformer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
