---
title: '@freesewing/utils'
---

FreeSewing's **utils** package provides various utility methods.

It is published on NPM as [@freesewing/utils
](https://www.npmjs.com/package/@freesewing/utils).\
The source code for this package is available in [our monorepo on Codeberg
](https://codeberg.org/freesewing/freesewing) under [packages/utils
](https://codeberg.org/freesewing/freesewing/src/branch/develop/packages/utils).

:::note
This package does not provide a default export.
:::

## Installation

```sh
npm install --save @freesewing/utils
```

## Named Exports

### capitalize

### clone

### cloudflareImageUrl

### copyToClipboard

### designOptionType

### distanceAsMm

### formatFraction128

### formatImperial

### formatMm

### formatNumber

### formatPercentage

### fractionToDecimal

### get

### getSearchParam

### hasRequiredMeasurements

### horFlexClasses

### horFlexClassesNoSm

### linkClasses

### measurementAsMm

### measurementAsUnits

### mutateObject

### navigate

### notEmpty

### optionsMenuStructure

### optionType

### orderBy

### pathLength

### patternUrlFromState

### randomLoadingMessage

### round

### roundDistance

### set

### shortDate

### shortUuid

### structureMeasurementsAsDesign

### timeAgo

### unset

### userAvatarUrl

### validateEmail

### validateTld
