paper-rulings
Measurements and information about paper rulings
Installation
npm install --save paper-rulings
Usage
const paperRulings = console
Output
API
paperRulings(rulingName, options)
rulingName
Type: string
One of the following:
- Narrow
- Medium
- College
- Wide
- Legal
- Gregg
- Pitman
- Quad
options
Type: object
options.format
Allows you to specify the output values formats
Type: string
One of the following:
- fraction
- decimal
options.units
Specify the output measurement units
Type: string
One of the following:
- mm
- cm
- m
- in
- ft
- mi
options.spacing
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
Change Log
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
License
MIT © Forrest Desjardins