
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
postcss-prettify
Advanced tools
postcss-prettify
About | Installation | Usage | License
A PostCSS plugin to prettify output. Requires at least Node.js v0.12. Should likely be included towards the end of a PostCSS plugin chain, if that's your jam.
Features
Example Input
.foo, .bar {
background: red;
}
@media only screen and (min-width:600px){.baz{background:blue;}}
Example Output
.foo,
.bar {
background: red;
}
@media only screen and (min-width: 600px) {
.baz {
background: blue;
}
}
From a terminal
npm install --save-dev postcss-prettify
As a PostCSS Plugin
postcss([
require('postcss-prettify')
])
Check the PostCSS docs for your chosen implementation.
Standalone
postcss-prettify
also exposes a standalone PostCSS processor instance as prettify.process(css)
:
var fs = require('mz/fs')
var prettify = require('postcss-prettify')
fs.readFile('src/style.css', 'utf8')
.then(data => prettify.process(data))
.then(res => fs.writeFile('dist/style.css', res.css))
.catch(err => console.err(err.stack))
0.3.4 — 3/16/16
Fix fail on empty input with checks for setting css.first.raws.before = ''
.
FAQs
prettify postcss output
The npm package postcss-prettify receives a total of 10,488 weekly downloads. As such, postcss-prettify popularity was classified as popular.
We found that postcss-prettify 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 official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.