2.0.4 • Published 12 months ago

whats-size v2.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
12 months ago

Library

WhatsSize Logo

A clothing and shoe conversion library for Europe, the United States, and Brazil.

Install

$ npm install --save whats-size

Techs Involved

  • TypeScript
  • Jest

Test

For run tests, use task test, on gulp, just like this:

npm test

Build

For build project, use task build, just like this:

npm run build

The output directory is ./lib/

Update database

To update the database, first update the file './src/assets/sizes.xls', and then use task 'database' as follows:

npm run build:db

The file './src/db/sizes.json' will be produced once you run the program.

Using this module in node

import { convertMenSize } from "whats-size"

const converter = convertMenSize("brazil")
converter.suits("46") // brazil: "36";
  • To use the WhatsSizes as JavaScript
const { convertWomenSize } = require('whats-size')

const converter = convertWomenSize("brl")
converter.skirts("38") // brazil: "346"

How to contribute

Do you have any suggestions or have you discovered a bug?

See how to contribute

Next steps

  • Repair database mistakes (sizes.xls)

License

MIT License William Sena

1.0.0

12 months ago

2.0.3

12 months ago

2.0.2

12 months ago

2.0.4

12 months ago

2.0.0

12 months ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago