@knitting-tools/math
v3.0.0
Published
Knitting math utilities for gauge, measurement, and conversions.
Maintainers
Readme
@knitting-tools/math
Knitting math utilities for gauge, measurement, and conversions.
Install
pnpm add @knitting-tools/mathIncludes
- Unit constants and conversion helpers
- Gauge calculations (rows/stitches per cm)
- Centimeter-to-rows/stitches conversion
- Measurement normalisation and stitch rounding
Migration from @knitting-tools/core
Math utility APIs can now be imported directly from @knitting-tools/math.
| Utility API | Preferred import |
| --- | --- |
| rowsPerCm, stitchesPerCm | @knitting-tools/math |
| cmToRows, cmToStitches | @knitting-tools/math |
| convertLength, normaliseMeasurement, roundStitches | @knitting-tools/math |
Before:
import { cmToRows, rowsPerCm } from "@knitting-tools/core";After:
import { cmToRows, rowsPerCm } from "@knitting-tools/math";