![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Note: This project is in alpha. Expect (and report) bugs!
JavaScript Evaluated Style Sheets, from the people who brought you Less.
You can think of Jess as a middle-ground between Less/Sass and CSS-in-JS. It keeps your styles in stylesheets, but it's equally dynamic. Jess is CSS-in-JS for people who don't like CSS in their JS.
For more information, see the docs.
A "jess" is defined as "a short leather strap that is fastened around each leg of a hawk...".
yarn install jess
npm install jess
To compile a .jess
file into CSS:
jess file.jess
@let myWidth: 3px;
.box {
width: $myWidth;
}
@import { constants } from './constants.js';
.box {
width: $(constants.WIDTH + 10)px;
}
@import { myWidth } from './stylesheet.jess';
.box {
width: $myWidth;
}
@import styles from './stylesheet.jess';
@include styles();
@mixin square(size) {
width: $size;
height: $size;
}
.box {
@include square(50px);
}
In progress, requires the (unfinished) Rollup or Webpack plugin.
import styles, { square } from './styles.jess'
const css = styles()
export const myComponent = props => {
return <div className={css.box} style={square(props.size).obj()}>Component</div>
}
As this is a WIP, file issues with your ideas/concerns/wants!
FAQs
JavaScript Enhanced Style Sheets
The npm package jess receives a total of 11 weekly downloads. As such, jess popularity was classified as not popular.
We found that jess 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.