# deriveDomain

Package: `@threadplane/content/messages` · 0.0.0

**Unpublished development API.**

Reference: /docs/api/content/messages/deriveDomain

```typescript
import { deriveDomain } from '@threadplane/content/messages';
```

## deriveDomain · overload 1

Extract a hostname with leading `www.` removed; null for missing/invalid URLs, empty for hostless URLs. This does not approve navigation.

```typescript
export declare function deriveDomain(url?: string): string | null;
```