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

cssm

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssm

A node.js module that minimize CSS files.

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-86.96%
Maintainers
1
Weekly downloads
 
Created
Source

cssm

A node.js module that minimize CSS files. It uses a port of YUICompressor made in JavaScript by Stoyan Stefanov based on Isaac Schlueter work. For more informations about YUICompressor → https://github.com/yui/yuicompressor

Install

$ npm install cssm -g

Usage

Command line

$ cssm css/*.css -s -min -c gbk

Module

var CSSM = require( 'cssm' );
var cssList = [ 'a,css', 'b.css' ];  // Or, just use 'a.js' for single file.
var charset = 'gbk';
var suffix = '-min';

CSSM.compress({
    input: cssList,
    charset: charset,
    suffix: suffix
});

Help

use cssm --help to see all the params:

  Usage: cssm [options]

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -c, --charset [value]  The charset encoding to use when compress your file.
    -s, --suffix [value]   Suffix that the compressed file will be add.

Keywords

FAQs

Package last updated on 24 Aug 2012

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