Skip to main content

@freesewing/utils

FreeSewing's utils package provides various utility methods.

It is published on NPM as @freesewing/utils .
The source code for this package is available in our monorepo on Codeberg under packages/utils .

note

This package does not provide a default export.

Installation

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

notEmpty

optionsMenuStructure

optionType

orderBy

pathLength

patternUrlFromState

randomLoadingMessage

round

roundDistance

set

shortDate

shortUuid

structureMeasurementsAsDesign

timeAgo

unset

userAvatarUrl

validateEmail

validateTld