Socket
Socket
Sign inDemoInstall

css-absolute-values-to-px

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    css-absolute-values-to-px

The CSS Value Converter is a command-line tool designed to simplify the conversion of CSS property values from absolute units to pixel (`px`) units. It operates on a specified directory, recursively processing all files with specified extensions.


Version published
Weekly downloads
1
Maintainers
1
Install size
178 kB
Created
Weekly downloads
 

Readme

Source

CSS Value Converter

The CSS Value Converter is a command-line tool designed to simplify the conversion of CSS property values from absolute units to pixel (px) units. It operates on a specified directory, recursively processing all files with specified extensions.

Features

  • Converts absolute numbers CSS to PX.
  • Recursively processes files in a specified directory.
  • Supports exclusion of specified folders from the conversion process.
  • Command-line interface for easy integration into your workflow.

Installation

You do not need

Usage

To use the CSS Value Converter, you can run it from the command line with the following options:

  • -d, --directory <directory>: Specifies the target directory to process.
  • -e, --extensions <extensions>: Specifies the file extensions to process (comma-separated).
  • -x, --excludeFolders <excludeFolders>: Specifies folders to exclude from the conversion process (comma-separated).
  • -h, --help: Displays the help documentation with usage instructions.

Examples

  1. Convert CSS files in the src directory and its subdirectories, excluding the node_modules folder, with extensions .css and .scss:
npx css-absolute-values-to-px -d src -e css,scss -x node_modules

License

This project is licensed under the MIT License - see the LICENSE file for details.

FAQs

Last updated on 12 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc