
Product
Introducing Socket Scanning for VS Code Marketplace Extensions
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@jesscss/plugin-less-compat
Advanced tools
A Less compatibility bridge for Jess.
Jess accepts typed AST-v2 Fn values here
and provides the shared Jess-owned bridge for Less-style plugin function
registration and Less-shaped function values.
The public compiler does not support Less 4 visitors, post-processors, file manager plugins, or a full Less tree AST adapter.
Fn values from @jesscss/core; their
bodies receive typed values and FnCtx capabilities.install(less, manager, functions) through plugins. The bridge supplies a
Less-shaped functions.functionRegistry and the supported less.tree
constructor facades, then lazily adapts function arguments and return values at
the Jess boundary.For example, migrate a Less functionRegistry.add('increment', fn) contribution
to a typed function and register it through functions:
import { Compiler } from 'jess';
import { defineFunction, makeDimension } from '@jesscss/core';
import lessCompatPlugin from '@jesscss/plugin-less-compat';
const increment = defineFunction('increment', {
params: [{ type: 'Dimension' }] as const,
body: value => makeDimension(value.number + 1, value.unit)
});
const compiler = new Compiler({
compile: { plugins: [lessCompatPlugin({ functions: [increment] })] }
});
For legacy Less function plugins:
const legacyPlugin = {
install(less, _manager, functions) {
functions.add('increment', value =>
new less.tree.Dimension(value.value + 1, value.unit)
);
}
};
const compiler = new Compiler({
compile: { plugins: [lessCompatPlugin({ plugins: [legacyPlugin] })] }
});
Less-shaped values are boundary values only. Jess owns their conversion back into typed AST-v2 values. The current bridge supports function registration and value conversion; it does not install a broad Less tree facade for visitors or prototype-patching plugins.
Alpha / experimental. The supported public routes are native function contribution and Less plugin function bridging. If you need Less visitors, post-processors, file managers, or broad Less tree AST mutation support today, use Less.js directly.
The programmatic plugin/compiler API is not yet stabilized — the jess CLI
is the documented public surface for the alpha. Watch the
docs site for the API once it settles. Current
design notes live in DESIGN.md.
FAQs
Less.js compatibility layer for Jess - enables Less plugins and visitors to work with Jess AST
The npm package @jesscss/plugin-less-compat receives a total of 716 weekly downloads. As such, @jesscss/plugin-less-compat popularity was classified as not popular.
We found that @jesscss/plugin-less-compat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Research
/Security News
Socket uncovered two malicious VS Code themes in a GlassWorm-linked cluster with thousands of installs across VS Code Marketplace and Open VSX.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.