{"_id":"@5no/paper-sizes","_rev":"1-36d2d9e6ef3f601d01c8f6f0cbdc01bc","name":"@5no/paper-sizes","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"@5no/paper-sizes","version":"1.0.2","description":"Tool for get the paper dimensions","main":"compiled/index.js","types":"typings/index.d.ts","scripts":{"clean":"rm -rf compiled","lint":"eslint --ext .ts src","lint:fix":"eslint --fix --ext .ts src","build":"tsc","test":"mocha test","release":"yarn lint && yarn clean && yarn build"},"author":{"name":"reb2020"},"license":"MIT","keywords":["paper","size","pixels","InchesToPixels","MillimetersToPixels","PointsToPixels","converter","iso-216","iso-269"],"homepage":"https://5no.io","repository":{"type":"git","url":"git+https://github.com/reb2020/5no-paper-sizes.git"},"dependencies":{},"devDependencies":{"@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^1.11.0","@typescript-eslint/parser":"^1.11.0","chai":"^4.2.0","eslint":"^6.0.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^7.0.1","eslint-plugin-promise":"^4.0.0","eslint-plugin-standard":"^4.0.0","mocha":"^5.2.0","typescript":"^3.5.3"},"gitHead":"063240e36f85e84069950388a50dbf4067b4dbe4","bugs":{"url":"https://github.com/reb2020/5no-paper-sizes/issues"},"_id":"@5no/paper-sizes@1.0.2","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-irC2/0igRNQbYFU5JQi5OewX6MF8yAd5AR1B2Jdciuf5JOCvcfLDUEX9KcCWgf16CrOddLc7pmsoXLXLm+WRGg==","shasum":"c1915d3794560db443eb572763ee516293fe9db9","tarball":"https://registry.npmjs.org/@5no/paper-sizes/-/paper-sizes-1.0.2.tgz","fileCount":22,"unpackedSize":33174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOSIhCRA9TVsSAnZWagAACq4QAJXkRSl1UrelZ+9PJ7/t\n8TYK9s/cPSp33esQ7GswUntO8lnxvNUcTsBA0L4ZCq9h5tfcr90UyODB2ilh\nmGHKcvXyFwZ/c8YXd9WYQNVqBCSbRM8JhIUgct05IE3jPy74ZaMQDlGwBv3L\nZK5VZ0fomG9Cj/EKd6mkWVvcCdrBReuQB4iCoSvmZB2/0SiALoKccvb9ZhVT\nnPovsLxhME+JppOvKZIpslKXiVK7TnTplz8O5n49rSbai/DpjmIydhF2pxsb\n8Gu5mQQpTr4omITwB5uSOhVsxdT1Wjozhc0lO+p8V9ldOL91QHHHaJHFiZTm\nS5NHnwLzB6pVIj/Bc1ogCrjCFLLeu183dlZz6xJasV2G5AQBQ4aSSZFcGifg\nUVyF526DxK8aq3u9qthgG1H+JPdWxQRIRA5FC2vjpqw7O99o7igYa6vc0mtR\nSPBwwR7LZH9ISDyDcT31FzokauhAqbYx60BG3rAv6eR/sWT2Z1fdPwOsVF0q\nOnz3sjP4ZtU8pcmcHf0CkunPcdYAlgog5E0cQZJ2k8HzNvYMwyXkNhtbJ/0P\nMK8e/wHY557PbIJs7J37p1Bm0/rm6qEKFcB/8+9ucwH0PeVrD32HYnhQxELq\njtuORF02aUV/4YZ3PGABhbgW/BeZfdIB+IZX8M/8nz9blHuGtC0Ovh81xxBe\nC5WB\r\n=nK1+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHthNy1bOJ1+4ZhVgTOiD7PHJ9X7yyQTYmmsTkopxRexAiAMrgwoSa6QycZS8YP393XthiBxJwLmNH5YbpctPHrU5A=="}]},"maintainers":[{"name":"reb2020","email":"reb2020@gmail.com"}],"_npmUser":{"name":"reb2020","email":"reb2020@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/paper-sizes_1.0.2_1580802593383_0.943059219544649"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-04T07:49:53.207Z","1.0.2":"2020-02-04T07:49:53.600Z","modified":"2022-04-04T10:48:36.994Z"},"maintainers":[{"name":"reb2020","email":"reb2020@gmail.com"}],"description":"Tool for get the paper dimensions","homepage":"https://5no.io","keywords":["paper","size","pixels","InchesToPixels","MillimetersToPixels","PointsToPixels","converter","iso-216","iso-269"],"repository":{"type":"git","url":"git+https://github.com/reb2020/5no-paper-sizes.git"},"author":{"name":"reb2020"},"bugs":{"url":"https://github.com/reb2020/5no-paper-sizes/issues"},"license":"MIT","readme":"# <a href='https://5no.io'><img src='https://5no.io/img/5no-small-logo.png' height='100' alt='5no Logo' aria-label='5no.io' /></a>Paper Sizes\n\nTool for get the paper dimensions in millimetres, inches, points, pixels\n\nThe dimensions of the A, B series paper sizes are defined by the ISO 216 international paper size standard\nThe dimensions of the C series sizes are defined by the ISO 269 paper size standard\n\n## Install\n\n@5no/paper-sizes requires Node version 8 or a bove.\n\n```sh\nnpm install --save @5no/paper-sizes\n```\n\n## Doc\n\n```js\n\nlet options = { \n    dpi: 300, // Dots Per Inch - by default 300\n    type: 'mm', // type of measurement 'mm' | 'in' | 'pt' | 'px'\n    width: 0, // custom width\n    height: 0 // custom height\n}\n\ntype isoCode = string | null // if you want to make the manual resolution this parameter will be pass null\n\nlet data = PaperSizes(isoCode, options)\n\n\n// convert the width measurement to Millimeters, Inches, Points, Pixels\ndata.widthToMillimeters() \ndata.widthToInches()\ndata.widthToPoints()\ndata.widthToPixels()\n\n\n// convert the height measurement to Millimeters, Inches, Points, Pixels\ndata.heightToMillimeters()\ndata.heightToInches()\ndata.heightToPoints()\ndata.heightToPixels()\n\n\n```\n\n## Examples\n\n```js\nconst PaperSizes = require('5no-paper-sizes')\n\nlet data = PaperSizes('A4')\n\nconsole.log(data.widthToMillimeters(), data.heightToMillimeters())\n\n//210, 297\n\nlet one = PaperSizes(null, {\n    dpi: 300,\n    type: 'px',\n    width: 2480,\n    height: 3508,\n})\n\nconsole.log(data.widthToMillimeters(), data.heightToMillimeters())\n\n//210, 297\n\n```\n\n## License\n\nMIT Licensed, Copyright (c) 2019 Aleksandr Sokol","readmeFilename":"README.md"}