whats-size
v2.0.4
Published
whats-size
Downloads
1
Readme
Library
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?
Next steps
- Repair database mistakes (sizes.xls)
License
MIT License William Sena