npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

px-converter

v0.8.1

Published

px-converter ============

Downloads

13

Readme

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.4.2 darwin-arm64 node-v16.17.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 joules

Take mass and height as input and returns the potential energy in Joules

USAGE
  $ px-converter joules

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ px-converter joules
  ? Specify the mass in Kg: 0.249
  ? Specify the height from the ground in meters: 50
  An object with mass of 0.249Kg from an height of 50 meters, will generate 122.0928 Joules

See code: src/commands/joules.ts

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

px-converter to:rgb [HEX]

Convert a given hex value to the corresponding rgb value

USAGE
  $ px-converter to:rgb [HEX]

ARGUMENTS
  HEX  Hex value

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ px-converter to:rgb FFFFFF
  rgb(255,255,255)

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