New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

strip-media-queries

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strip-media-queries

Strip specific media queries from several css files and create a new file(s)

  • 0.6.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
29
increased by93.33%
Maintainers
1
Weekly downloads
 
Created
Source

Strip Media Queries

npm version

Node module to strip media queries from a CSS file and create a file with them.

Usage

Install the module globally via:

npm install strip-media-queries -g

Run it from your project folder. e.g.

strip-media-queries --src=demo/**.css --width=400

Options

The options for the module are the following:

  • src: The name of the file that contains the media queries.
  • dest: The name of the file that will contains all the media queries.
  • ignore: The files to be ignored.
  • widths: The width of the media queries to strip out, to add multiple widths use commas e.g. --width=100,200.
  • extract: The widths of the media queries to extract out of the media rule e.g. --width=800. Default: '[]'
  • override: Configure if override the original file or create a new one. Default: false
  • stripperSuffix: The suffix to add to the new stripped file. Default: '.stripped.css'

Keywords

FAQs

Package last updated on 26 Sep 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc