{"_id":"5no-paper-sizes","_rev":"3-0c516c88d11e2ee07be921403fc3d53d","name":"5no-paper-sizes","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"5no-paper-sizes","version":"1.0.0","description":"Tool for get the paper dimensions","main":"compiled/index.js","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://github.com/reb2020/5no-paper-sizes#readme","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":"d9738bf36b2ff0616ef6a6f32d670303709b7d60","bugs":{"url":"https://github.com/reb2020/5no-paper-sizes/issues"},"_id":"5no-paper-sizes@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-AJA+tIXQ8M0qhbcqpGPpn4T2pNfULaSuCTCsOQMxiZVFow5QZEEqO1AmlLR8wlPWxm7mKSs6NG3eeb/97VBLkA==","shasum":"b14142037289a71447fa2117528a687313609b8e","tarball":"https://registry.npmjs.org/5no-paper-sizes/-/5no-paper-sizes-1.0.0.tgz","fileCount":24,"unpackedSize":37094,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMdqyCRA9TVsSAnZWagAA+5AQAJ9bajXjHyWu9e+eXJEJ\nkBvic9RwvrgcuSpq3tcB0sz6JraNaMb9Q/4JXDpxYcqnOAKaRqx3KVKGssfM\nPz9GsseTcT/hL14pS4765HkIStOZz75SGihCYqZPSQRANL6xE3kdN63+yisa\n2boff+uAxohfy/PYEz8u07m67rVvE/ABoaHWKaSjl/8oEcYHM3zaUgEsg/ub\nejC4Pwr1lSEheBehbYhe/DpvaGoWpGuG0Hs087tg7JZ549PN7Sful/waFiPy\nJPtRHq//EBrl08iyUsS45lrDjhx/HS4jKhXzZowRT9M8F5x4bjq8PReHUOgP\nKuMNk6RRt7G/DnuXYFTe4jOdKqVFIttY+srXFrhITJd6utjLFFGPpKhdJ3Cm\ng/zUtCxjFSWm7D19dKYd2FXTwNi079yHth114Eb4RenH+BNdVz9E79sYhOg0\n2rlzoUszxpA6HlnVH8UVTcnBBQE6dOEkdz0zCxuGjpndBJ79CyLxf6m+yDpP\ns6wXYLK5m4YLhLFgbBoK+F3o7jr+280bKzdvtLbOX3tqmJTIwH9mhGtnSnMn\nn9kFKK3BJPQwYUGu01UANXO3atcSzVtnFw3EIiCJuphA+qLBslZiENNPV/cj\nu7bNz8ZgSEV9+JeC71cPC0ZPL1vDdtnN7Pi69G9ZcBe6Pkd73Vw+KuntHAvg\nSQPH\r\n=h6Z+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDi2PkXKdDYNP3WBSKsF7WUGAPIvzViPFIX0blv16egMQIhAJYS4blqu/qXCxP6+Dk8Erk8XvWAbScSMrs8vRJElzLU"}]},"maintainers":[{"name":"reb2020","email":"reb2020@gmail.com"}],"_npmUser":{"name":"reb2020","email":"reb2020@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/5no-paper-sizes_1.0.0_1563548337884_0.84690014844178"},"_hasShrinkwrap":false},"1.0.1":{"name":"5no-paper-sizes","version":"1.0.1","description":"Tool for get the paper dimensions","main":"compiled/index.js","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://github.com/reb2020/5no-paper-sizes#readme","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"},"_id":"5no-paper-sizes@1.0.1","dist":{"shasum":"0567ca0fe367132acdf6866f30825af2864e7132","integrity":"sha512-KDGwTNFeOAfmJhXcaOqEUglzbR9B8vqjtltqrNo9BnqlQDtTcF0AOJO1+sBqOz5SbKhhayoI1tqyXeqM1Wh+9w==","tarball":"https://registry.npmjs.org/5no-paper-sizes/-/5no-paper-sizes-1.0.1.tgz","fileCount":30,"unpackedSize":37086,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdZ7AUCRA9TVsSAnZWagAAv5EQAIKmdfhhL03CZb7o2JnA\nNV1syPpLZisGCq1ev/tPZjUBhInRy3AthX4XOYdiT+j+HTyvs4GlvnI2b6q0\nNDB7+nzGCA4hjTKotlkUusEWn+FS/5FsHD61RO2+PilmaPEmQWp+xEJ2A1cG\nyH3ZAsDbJ21xGdHmM2LNUb0YR1fjD8KuxpvxpGZRcRMcPQr0BGoBy6wRMp2O\nzrUs1ZaB5cYBDUTDDEOE8h5j2zHc2cQ75oo+y+tK9vnTezuXtInAvEN5XAs0\ns/YIcwucMcAUFknw5aFn/mGFE6OFXBWVIa5dYEYEvQYLv+KuJJtQnf5UTXg7\nuWZxGcXfLAoGP4vcCNI/Ckd8uKCdyx0wcHuJrcnHzxCpmVwtsiQeu15i12Wc\nz1Oh3bG93v3teeqzUHLcHn6IF3/c7JI9JPmfLHruja6Aa4k4565UDnfrbh3Y\ns+GB2cf/KxjgJRzn5nv1BOuD4YAcWicuGiEktpk3PWN5chtFexygcaAEIGy0\nNOFGlYo8+AQ6KguDaLw+KV8JXnu4nw0pZdqAgwbNs2GHl+CFkzXGq8ZRctwR\nXuaAQCxQVmoCNUUbDMyB7vzA6Dg+9TY19dJbLHTER6Z+WqnyAy7Bg3OUd8SF\n0FiCblV9Ys+ZDGO1fYwkXFXX1COovl7rpn7Q1DlAdiP4Ye6YqSwsUpxdvcgD\noMD8\r\n=wsLG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDen5yNcGv6xxOR5QAk4/FE0FwxrWs7Y5r0zPTc77J4fwIge8iKvArvxcXlyus6RJ1svAE7YTnpFPolDFqjPdUaGIs="}]},"maintainers":[{"name":"reb2020","email":"reb2020@gmail.com"}],"_npmUser":{"name":"reb2020","email":"reb2020@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/5no-paper-sizes_1.0.1_1567076372203_0.24581239457440662"},"_hasShrinkwrap":false},"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":"35131254b7acce0a626ef6ab86f452f8bf1713f6","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-GhnjKVFJ7nJojZCl4Z3xxhRKj9xo7viqhjHh5d4Xak8YVvKPxSYXlYaFBWfgq3vpQadxyfBRqKw1GHv4rIDFrg==","shasum":"47243038bfb4a52bb9368bfbc511ec75538ddac6","tarball":"https://registry.npmjs.org/5no-paper-sizes/-/5no-paper-sizes-1.0.2.tgz","fileCount":22,"unpackedSize":33173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOSHrCRA9TVsSAnZWagAAksQP/3rN1d8JM1bD/PeAXEAg\nI2p0rM2QxId0SRtmiWivsWPHHPsKHS8Ch2qmae4GQ8Cn1XYOBlMtnSWCS3yP\nhT+rpHe328arno9/nnb1gHRinffYuE8OYxztju8wP/MC1e940E7kWwzedLtV\nVJMXmsAFo2uc3+e1cytBbc0ydtNqlI9zkL9tlarzAxUeqaIakhTgC1THLkou\nYt4GPwb1TulYjZa25Y6TdBxMOnzBAt5jTYF63fJ+EiSMjmTteqeaQStfoNv0\nbZnNv3kndNpefFRHAi0qeS6Wd1LbLwDyNGZ4cxp0UWMsMFzKDdfHGEyXSaa7\nynk19xPXSwSqo+y8M6JwcgH68pbjFYNIWIFSS+CLtDi8C/UAz+0ab2AfMqkJ\nTmqYfhHC7Z9lAD1xeX+vnOh7vFURT/W5GO53a1N4yI9rxj6pEj0LwBi/jiPA\n+orRy9Hz41IIBF+Mzp635LVHCSrVx/QJPPpr5xWwjEZpYm1CTUk3XLuTk9qr\nsVT6VCaomVma8eKLzm5puB0hQhYVHJvDn52cLjrHnit3H2foHUfsPmf985QX\nH36AHlKDVgMEQSty2tSNp6itUWTK5GnhZ/IhNsnj3IzBFJTzCg9SylbcJZG7\nLoBEcAAz9zliZEy2I1B4zZamUyklS2A7L/8djGVly2Za/q6xZ+oTz3MbPaH1\nEip+\r\n=/l3Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBQOP3gK1mkl8zPgnIYYTxhXYwmtZqlqbWFYypnukxoxAiEAh4aETnMu+m1GGernJtf7PRYW+/r1iHaI78H4xl8pAno="}]},"maintainers":[{"name":"reb2020","email":"reb2020@gmail.com"}],"_npmUser":{"name":"reb2020","email":"reb2020@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/5no-paper-sizes_1.0.2_1580802539065_0.040921473495234784"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-19T14:58:57.675Z","1.0.0":"2019-07-19T14:58:58.111Z","modified":"2022-04-04T10:23:19.832Z","1.0.1":"2019-08-29T10:59:32.326Z","1.0.2":"2020-02-04T07:48:59.248Z"},"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"},"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","bugs":{"url":"https://github.com/reb2020/5no-paper-sizes/issues"}}