2.0.4 • Published 3 years ago
whats-size v2.0.4
Library

A clothing and shoe conversion library for Europe, the United States, and Brazil.
Install
$ npm install --save whats-sizeTechs Involved
- TypeScript
- Jest
Test
For run tests, use task test, on gulp, just like this:
npm testBuild
For build project, use task build, just like this:
npm run buildThe 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:dbThe 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
WhatsSizesas 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?
Next steps
- Repair database mistakes (sizes.xls)
License
MIT License William Sena