New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@jesscss/fns

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jesscss/fns

Jess functions module

npmnpm
Version
2.0.0-alpha.8
Version published
Weekly downloads
161
-78.42%
Maintainers
1
Weekly downloads
 
Created
Source

@jesscss/fns

The built-in Less/Sass style-function library — color, math, string, and list helpers, split per-file for tree-shaking.

@jesscss/fns is the standard function library for Jess — Less.js v5, a ground-up rewrite of the Less CSS preprocessor. It provides the built-in functions the language exposes: color operations (lighten, darken, mix, saturate, …), math (round, floor, sqrt, pow, …), unit and type helpers, string helpers, and list/map utilities.

Functions live in their own files and are re-exported from a barrel, so bundlers can tree-shake down to only the helpers you actually use.

@jesscss/fns          → the Less function set (the alpha surface)
@jesscss/fns/<name>   → import a single function directly

The Sass-side helpers exist in the source tree as part of the roadmap Sass+ work, but SCSS is not the focus of the Less-focused alpha — treat that surface as experimental.

Who uses it

This is an internal engine package. The functions are primarily invoked by the compiler during evaluation, and several expect a Jess evaluation context on this — they are not yet a general-purpose, standalone JavaScript API. Most people should install jess and use the jess / lessc CLIs. The JavaScript/TypeScript API is not yet stabilized.

Status

Alpha. Published to npm under both the latest and alpha dist-tags. Please report bugs.

License

MIT

FAQs

Package last updated on 13 Jul 2026

Related posts