px-converter
px-converter ============
Last updated 5 months ago by darkmavis1980 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install px-converter 
SYNC missed versions from official npm registry.

px-converter

oclif Version Downloads/week License Build Status

Usage

$ npm install -g px-converter
$ px-converter COMMAND
running command...
$ px-converter (-v|--version|version)
px-converter/0.2.10 darwin-x64 node-v14.3.0
$ px-converter --help [COMMAND]
USAGE
  $ px-converter COMMAND
...

Commands

px-converter from:pt [POINT]

Convert a given point (pt) value to the corresponding pixel value

USAGE
  $ px-converter from:pt [POINT]

ARGUMENTS
  POINT  Point to convert

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ px-converter from:pt 12
  16px

See code: src/commands/from/pt.ts

px-converter from:rem [REM]

Convert a given rem value to the corresponding pixel value

USAGE
  $ px-converter from:rem [REM]

ARGUMENTS
  REM  Rem to convert

OPTIONS
  -b, --base=base  [default: 16] Base pixel
  -h, --help       show CLI help

EXAMPLE
  $ px-converter from:rem 2
  32px

See code: src/commands/from/rem.ts

px-converter help [COMMAND]

display help for px-converter

USAGE
  $ px-converter help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

px-converter table:pt

Return a table of conversions between pixels and points

USAGE
  $ px-converter table:pt

OPTIONS
  -h, --help         show CLI help
  -r, --range=range  [default: 10,42] Range of pixels

EXAMPLE
  $ px-converter table:pt
  Pixel     Point
  10px      7.5pt
  11px      8.25pt
  12px      9pt
  ...

See code: src/commands/table/pt.ts

px-converter table:rem [BASEPIXEL]

Return a table of conversions between pixels and rems, if no BASEPIXEL value is passed, it will default to 16 pixels

USAGE
  $ px-converter table:rem [BASEPIXEL]

ARGUMENTS
  BASEPIXEL  Base Pixel

OPTIONS
  -b, --base=base    [default: 16] Base pixel
  -h, --help         show CLI help
  -r, --range=range  [default: 10,42] Range of pixels

EXAMPLE
  $ px-converter table:rem
  Pixel     Rem
  10px      0.625rem
  11px      0.6875rem
  12px      0.75rem
  ...

See code: src/commands/table/rem.ts

px-converter to:pt [PIXEL]

Convert a given pixel value to the corresponding point value

USAGE
  $ px-converter to:pt [PIXEL]

ARGUMENTS
  PIXEL  Pixel to convert

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ px-converter to:pt 16
  12pt

See code: src/commands/to/pt.ts

px-converter to:rem [PIXEL]

Convert a given pixel value to the corresponding rem value

USAGE
  $ px-converter to:rem [PIXEL]

ARGUMENTS
  PIXEL  Pixel to convert

OPTIONS
  -b, --base=base  [default: 16] Base pixel
  -h, --help       show CLI help

EXAMPLE
  $ px-converter to:rem 16
  1rem

See code: src/commands/to/rem.ts

Current Tags

  • 0.2.11                                ...           latest (a day ago)

13 Versions

  • 0.2.11                                ...           a day ago
  • 0.2.10                                ...           a month ago
  • 0.2.9                                ...           2 months ago
  • 0.2.8                                ...           2 months ago
  • 0.2.7                                ...           2 months ago
  • 0.2.6                                ...           3 months ago
  • 0.2.5                                ...           4 months ago
  • 0.2.3                                ...           5 months ago
  • 0.2.2                                ...           5 months ago
  • 0.2.1                                ...           5 months ago
  • 0.2.0                                ...           5 months ago
  • 0.1.1                                ...           5 months ago
  • 0.1.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 10
This Month 22
Last Day 10
Last Week 0
Last Month 9
Dependencies (5)
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |