# deviceAttributes

Canonical: https://docs.shumoku.dev/en/library/api/deviceAttributes
Language: en

@shumoku/core · 0.6.1 · function

# deviceAttributes

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/plugin-kit/stamp.ts#L54)

A node's device attributes from raw parts: empty values dropped, \`chassisId\` and \`mac\` in the canonical MAC spelling where they are MACs. Spread the result onto the node the plugin returns.

```
deviceAttributes(parts: { address?: string | null; chassisId?: string | null; mac?: string | null; sysName?: string | null }): DeviceAttributes
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `parts` | `{ address?: string | null; chassisId?: string | null; mac?: string | null; sysName?: string | null }` | No additional description. | `—` |

## Returns

```
DeviceAttributes
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/plugin-kit/stamp.ts:54`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/plugin-kit/stamp.ts#L54)
