---
title: "import.meta | Grafana k6 documentation"
description: "The import.meta object provides context-specific metadata for ECMAScript modules."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# import.meta

The `import.meta` object provides the `resolve` function, which resolves a path to a URL string in the same way an import statement does.

The `import.meta` object is only available in ECMAScript modules, not in CommonJS modules.

Expand table

| Function                                                                   | Description                                                            |
|----------------------------------------------------------------------------|------------------------------------------------------------------------|
| [import.meta.resolve](/docs/k6/latest/javascript-api/import.meta/resolve/) | Resolves a path to a URL string the same way an import statement does. |
