Current collected state Current
Observed since 20 Oct, 20:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
5no-paper-sizes
Tool for get the paper dimensions
Paper SizesTool for get the paper dimensions in millimetres, inches, points, pixels
The dimensions of the A, B series paper sizes are defined by the ISO 216 international paper size standard The dimensions of the C series sizes are defined by the ISO 269 paper size standard
@5no/paper-sizes requires Node version 8 or a bove.
npm install --save @5no/paper-sizes
let options = {
dpi: 300, // Dots Per Inch - by default 300
type: 'mm', // type of measurement 'mm' | 'in' | 'pt' | 'px'
width: 0, // custom width
height: 0 // custom height
}
type isoCode = string | null // if you want to make the manual resolution this parameter will be pass null
let data = PaperSizes(isoCode, options)
// convert the width measurement to Millimeters, Inches, Points, Pixels
data.widthToMillimeters()
data.widthToInches()
data.widthToPoints()
data.widthToPixels()
// convert the height measurement to Millimeters, Inches, Points, Pixels
data.heightToMillimeters()
data.heightToInches()
data.heightToPoints()
data.heightToPixels()
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
MIT Licensed, Copyright (c) 2019 Aleksandr Sokol
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | ^12.0.0 | development |
@typescript-eslint/eslint-pluginEnvironment{
"local_name": "@typescript-eslint/eslint-plugin",
"alias": false,
"peer_metadata": null
} | ^1.11.0 | development |
@typescript-eslint/parserEnvironment{
"local_name": "@typescript-eslint/parser",
"alias": false,
"peer_metadata": null
} | ^1.11.0 | development |
chaiEnvironment{
"local_name": "chai",
"alias": false,
"peer_metadata": null
} | ^4.2.0 | development |
eslintEnvironment{
"local_name": "eslint",
"alias": false,
"peer_metadata": null
} | ^6.0.1 | development |
eslint-config-standardEnvironment{
"local_name": "eslint-config-standard",
"alias": false,
"peer_metadata": null
} | ^11.0.0 | development |
eslint-plugin-importEnvironment{
"local_name": "eslint-plugin-import",
"alias": false,
"peer_metadata": null
} | ^2.8.0 | development |
eslint-plugin-nodeEnvironment{
"local_name": "eslint-plugin-node",
"alias": false,
"peer_metadata": null
} | ^7.0.1 | development |
eslint-plugin-promiseEnvironment{
"local_name": "eslint-plugin-promise",
"alias": false,
"peer_metadata": null
} | ^4.0.0 | development |
eslint-plugin-standardEnvironment{
"local_name": "eslint-plugin-standard",
"alias": false,
"peer_metadata": null
} | ^4.0.0 | development |
mochaEnvironment{
"local_name": "mocha",
"alias": false,
"peer_metadata": null
} | ^5.2.0 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^3.5.3 | development |
Source distribution
{
"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"
}
]
}Observed since 20 Oct, 20:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:2bea4a6e4f7daebdca3c85aafe3aceb0573abdd9f5d2ecedb1ace62c560add2e