Examples

const PaperSizes = require('@5no/paper-sizes')

let data = PaperSizes('A4')

console.log(data.widthToMillimeters(), data.heightToMillimeters())

//210, 297

let one = PaperSizes(null, {
    dpi: 300,
    type: 'px',
    width: 2480,
    height: 3508,
})

console.log(data.widthToMillimeters(), data.heightToMillimeters())

//210, 297