
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@multiplyco/tailwind-clj
Advanced tools
Scan Clojure files for matches to Tailwind CSS class names.
Scans Clojure source files for matches to Tailwind CSS class names. It will include matches for both strings and keywords.
It does so quickly and correctly.
We started using Tailwind back in 2019, when it was hovering around 1.0. Initially it worked well, but occasionally it wouldn't pick up certain styles from the source files. This also changed between versions of Tailwind over the years.
In order to get more predictable and correct results, we started extracting classes from the JS output rather than the Clojure source files. This worked fairly well up to the point where our app grew such that each Tailwind recompile took 20-30 seconds because of the size of the ClojureScript compiler JS output during dev time.
This is a small library that fixes these problems. It,
If you happen to be using a subset of Tailwind that doesn't break in Clojure, you probably don't need this library. If you have trouble with Tailwind picking up styles, or compiles taking a long time, it might help.
E.g.,
yarn add @multiplyco/tailwind-clj
In your tailwind.config.js
:
const {scanClojure} = require('@multiplyco/tailwind-clj');
module.exports = {
content: {
files: [
'./src/**/*.{clj,cljs,cljc}'
],
extract: {
clj: (content) => scanClojure(content),
cljs: (content) => scanClojure(content),
cljc: (content) => scanClojure(content)
}
},
…
1.0.3
Tidy up (thanks @dpassen)
FAQs
Scan Clojure files for matches to Tailwind CSS class names.
We found that @multiplyco/tailwind-clj 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.