# Module

A document's body when it is a module: the module's file, relative to the project root. Pass it to importModule from tomekit/content-modules to get the module's exports.

> Every page: https://tomekit.aayush.cv/llms.txt

```ts
type Module<TExports = unknown> = string & {
  readonly [EXPORTS]: TExports;
};
```

Defined in: [module.ts:22](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/module.ts#L22)

A document's body when it is a module: the module's file, relative to the project root. Pass it to `importModule` from `tomekit/content-modules` to get the module's exports.

## Example

```ts
import { posts } from "tomekit/content";
import { importModule } from "tomekit/content-modules";

const { default: Content } = await importModule(posts.get("hello-world").body);
```
