Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uncss

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uncss

Remove unused CSS styles

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
70K
decreased by-6.02%
Maintainers
1
Weekly downloads
 
Created
Source

UnCSS

Remove unused styles from CSS

Installation:

npm install -g uncss

Usage

From the command line:

uncss [options] <file.html file.css ...>

Options:

-h, --help            output usage information
-V, --version         output the version number
-c, --compress        Compress CSS
-o, --outfile [file]  redirect the output to [file]

Within node:

var uncss = require('uncss');

var css     = ['my', 'array', 'of', 'css', 'files'],
    html    = ['some', 'html', 'files'],
    options = {
        compress: false,
        outfile: 'css/style.min.css'
    };

uncss(css, html, options);

Keywords

FAQs

Package last updated on 17 Apr 2013

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