+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "parseFlags"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## parseFlags() function

### parseFlags() function

Converts any mode modifiers in the text to the Javascript equivalent flag

<b>Signature</b>

```typescript
export declare function parseFlags(text: string): {
    cleaned: string;
    flags: string;
};
```
<b>Import</b>

```typescript
import { parseFlags } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  text | <code>string</code> |  |

<b>Returns:</b>

`{
    cleaned: string;
    flags: string;
}`

