whats-size
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

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

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i whats-size

    Weekly Downloads

    0

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    50.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • williampsena