shoe-converter
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

👟 Shoe Converter

Making it possible to convert the shoe size and gender of one brand to another.

npm package

Installation

npm i shoe-converter

Usage

import { convert, getShoeSizeData } from "shoe-converter";

const data = getShoeSizeData(); // Returns the JSON data

const result = convert({
  from: {
    brand: "nike",
    system: "us",
    gender: "men",
    size: "8",
  },
  to: {
    brand: "adidas",
    system: "uk",
    gender: "men",
  },
}); // Returns a string of the size converted

Service

Parameter Type Description
brand string The brand of the shoe
system string The sizing system
gender string The gender, as provided by the shoe makers
size string The size of the shoe

Behind the scenes

The provided size is converted to its length in centimeters.
That length is later used as reference to return the equivalent size of a desired brand, sizing system, and/or gender.
The utilised sizing data is provided by the manufacturer.

/shoe-converter/

    Package Sidebar

    Install

    npm i shoe-converter

    Weekly Downloads

    6

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    35.8 kB

    Total Files

    17

    Last publish

    Collaborators

    • lorenzocermeno