New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tailwind-transpiler

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwind-transpiler

A tool to parse and replace Tailwind CSS class names using AST.

latest
npmnpm
Version
0.0.27
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Tailwind-Transpiler

Tiny transpiler to collect and put all custom tailwind classes into a file.

Use:

npm i tailwind-transpiler -D

to install the library

And then use it in your project scripts like this:

"script":{
    "extract": "extract-classes"
}

Then run the script using:

npm run extract

Also, by default, it will process the src folder, but you can specify a different folder like this:

"script":{
    "extract": "extract-classes folder-you-want"
}

It will generate custom classnames in output folder in the root directory and in extracted-classes.json file.

Also you can see project in my github repositories:

Keywords

tailwind

FAQs

Package last updated on 11 Mar 2025

Did you know?

Socket

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.

Install

Related posts