
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.

The dynamic stylesheet language. lesscss.org
[!IMPORTANT] This package README is for Less 5 alpha.1. Less 5 is a Jess-powered compiler preview for early testing and is not yet a drop-in replacement for Less 4.x. Alpha.1 focuses on Node.js
less.render(),less.renderFile(),lessc, variables, arithmetic, mixins, sibling file imports, and nested-rule output. Source maps, browser compilation, legacy plugin host APIs, URL rewriting, and compressed-output parity are still work in progress.
Less extends CSS with variables, mixins, functions, nesting, and more — then compiles to standard CSS. Write cleaner stylesheets with less code.
@primary: #4a90d9;
.button {
color: @primary;
&:hover {
color: darken(@primary, 10%);
}
}
npm install less@alpha
For a pinned first alpha:
npm install less@5.0.0-alpha.1
Less 5 alpha.1 requires Node.js ^20.19.0 || >=22.12.0.
import less from 'less';
const output = await less.render('.class { width: (1 + 1) }');
console.log(output.css);
npx lessc styles.less styles.css
Less 5 alpha.1 does not include browser compilation support. A new browser build mechanism will be introduced in a future alpha.
Full documentation, usage guides, and configuration options at lesscss.org.
Less.js is open source. Report bugs, submit pull requests, or help improve the documentation.
See CONTRIBUTING.md for development setup.
Copyright (c) 2009-2025 Alexis Sellier & The Core Less Team Licensed under the Apache License.
Sass (Syntactically Awesome Stylesheets) is a mature, stable, and powerful professional grade CSS extension language. It provides similar features to Less, such as variables, mixins, and nested rules. Sass has two syntaxes: the original 'indent' syntax that is similar to Haml and the newer 'SCSS' that uses braces like CSS. It's one of the most popular CSS preprocessors.
Stylus is a preprocessor that offers a mix of features from both Sass and Less, as well as some additional unique features. It has a more flexible syntax that can be written with or without braces, colons, and semicolons. Stylus provides powerful and efficient stylesheet writing capabilities.
PostCSS is a tool for transforming CSS with JavaScript plugins. These plugins can lint your CSS, support variables and mixins, transpile future CSS syntax, inline images, and more. PostCSS is different from preprocessors like Sass and Less in that it's modular and can be configured to perform a wide variety of tasks.
FAQs
Leaner CSS
The npm package less receives a total of 5,296,451 weekly downloads. As such, less popularity was classified as popular.
We found that less demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.