1.0.0 • Published 2 years ago

shoe-converter v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

:athletic_shoe: 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

ParameterTypeDescription
brandstringThe brand of the shoe
systemstringThe sizing system
genderstringThe gender, as provided by the shoe makers
sizestringThe 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.

1.0.0

2 years ago

0.5.0

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago