> For the complete documentation index, see [llms.txt](https://wopehq.gitbook.io/muninn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wopehq.gitbook.io/muninn/config/basic.md).

# Basic

## About Config

The config is kept as an object. In this way, it can be stored in a file in JSON format, but it prevents some advanced features from being used. It is recommended to use it as a javascript object to access all the features of Muninn.

```typescript
type Config = {
    [key: string]: Selector | SelectorConfig;
}
```

```typescript
type Selector = string;
```

```typescript
type SelectorConfig = {
  selector?: Selector;
  html?: boolean;
  attr?: string;
  type?: string;
  trim?: boolean;
  exist?: boolean;
  transform?: Function;
  arrayTransform?: Function;
  condition?: Function;
  methods?: string[];
  regex?: RegexConfig;
  initial?: any,
  fill?: any,
  schema?: {
    [key: string]: SelectorConfig;
  };
};
```
