Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zidious/rem-this
A simple CLI to convert pixel values to rem units
https://github.com/zidious/rem-this
cli converter pixel rem
Last synced: about 2 months ago
JSON representation
A simple CLI to convert pixel values to rem units
- Host: GitHub
- URL: https://github.com/zidious/rem-this
- Owner: Zidious
- License: mit
- Created: 2023-02-01T21:25:57.000Z (almost 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-07-08T01:12:49.000Z (6 months ago)
- Last Synced: 2024-10-06T15:41:50.046Z (3 months ago)
- Topics: cli, converter, pixel, rem
- Language: TypeScript
- Homepage:
- Size: 176 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# rem-this
[![npm](https://img.shields.io/npm/dt/rem-this)](https://www.npmjs.com/package/rem-this)
> A simple CLI tool to convert pixel values to rem units.
## Install
```sh
npm install -g rem-this
```## Usage
```sh
rem-this 1440
```
Output:```
1440px => 90rem
Copied to clipboard!
```## Flags
| Flags | Description | Default |
| -------------------- | ------------------------------------------ | ------- |
| `--round`, `-r` | Round the number to the nearest integer | true |
| `--disable-copy`, `-d` | Disable copying the result to the clipboard | false |
| `--font-size`, `-f` | The base font size to convert to rem units | 16 |