From c5d10d8f7e1ce4a4e4488227c8a6ae83680d8249 Mon Sep 17 00:00:00 2001 From: Alison Monteiro Date: Sat, 12 May 2018 13:11:53 -0300 Subject: [PATCH] docs(api): update readme --- readme.md | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 1d207b2..1e0a9cd 100644 --- a/readme.md +++ b/readme.md @@ -1,8 +1,8 @@ -## shoe-size-converter +# shoe-size-converter -### usage +> Convert your shoe size 👟 -##### converter(country, genre, size, [output]); +## Usage ```javascript const converter = require('shoe-size-converter'); @@ -10,6 +10,34 @@ const converter = require('shoe-size-converter'); converter('au', 'm', 4.5); //=> {eu: 37, br: 35, cm: 24, in: '9 3/8'} -converter('uk', 'w', 6, ['br']); -//=> {br: 37} +converter('uk', 'w', 6, ['br', 'us']); +//=> {br: 37, us: 6.5} ``` + +## API + +### converter(location, genre, size, [output]); + +#### location +Type: `string` + +Options: `us`, `ca`, `uk`, `au`, `eu`, `br` + +#### genre +Type: `string` + +Options: `w`, `m` + +Default: `m` + +#### size +Type: `string` + +Your shoe size based on `location` + +#### output +Type: `Array` + +Default: `['eu', 'br', 'cm', 'in']` + +Options: `us`, `ca`, `uk`, `au`, `eu`, `br`, `cm`, `in`