VibeHunt
Back to browse

viewport-list-cli

Return a list of devices and their viewports.

Source

viewport-list-cli is a command‑line utility that outputs the viewport dimensions for a set of device names. It can be invoked without arguments to list all known devices, or with one or more device identifiers to retrieve only those entries. Input can also be supplied via standard input, allowing the tool to process a file or piped list of device names.

The program prints the results in a simple text format, and an optional `--pretty` (or `-p`) flag formats the output as a table for easier reading. It is distributed as an npm package and can be installed globally, making the command available from any terminal session.

The CLI acts as a thin wrapper around the underlying `viewport-list` API, exposing the same device‑to‑viewport mapping in a convenient shell‑friendly form. It is released under the MIT license and is considered stable for developer use.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps