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
{
"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="
}
]
}Observed since 20 Oct, 20:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:59f4861dd40ba2c7b054793bc72dffbfb1a1276e15f196b7ed3e2ef28b7f8af4