Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
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
$ npm install cssm -g
$ cssm css/*.css -s -min -c gbk
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
});
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.
FAQs
A node.js module that minimize CSS files.
The npm package cssm receives a total of 2 weekly downloads. As such, cssm popularity was classified as not popular.
We found that cssm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.