Measurements and information about paper rulings
npm install --save paper-rulings
const paperRulings = require('paper-rulings')
console.log(JSON.stringify(paperRulings('gregg', { format: 'decimal', units: 'mm' }), null, 2))
{
"names": [
"Gregg"
],
"spacing": "8.730823935791932 mm",
"margins": [
{
"left": "50%"
}
],
"notes": "Used for stenography. Includes a single margin down the center of the page."
}
Type: string
One of the following:
- Narrow
- Medium
- College
- Wide
- Legal
- Gregg
- Pitman
- Quad
Type: object
Allows you to specify the output values formats
Type: string
One of the following:
- fraction
- decimal
Specify the output measurement units
Type: string
One of the following:
- mm
- cm
- m
- in
- ft
- mi
Quad ruling allows custom spacing
Type: string
A number followed by any of the units allowed in options.units
Examples:
1/2 in
10 mm
0.1 ft
v1.3.0 - 2017-06-30
- added quad ruling
v1.2.0 - 2017-04-30
- added unit conversions and
units
field inoptions
v1.1.0 - 2017-04-30
- added decimal/fraction output formats and
format
field inoptions
- improved options validation and handling
v1.0.0 - 2017-04-30
- initial release
MIT © Forrest Desjardins