Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Available via npm
yarn global add rustywind
or
npm install -g rustywind
or
Install from a github release:
curl -LSfs https://avencera.github.io/rustywind/install.sh | sh -s -- --git avencera/rustywind
or
Download a release directly from github: github.com/avencera/rustywind/releases
Run rustywind with a path to output updated file contents to the terminal:
rustywind .
If you want to reorganize all classes in place, and change the files run with the --write
flag
rustywind --write .
Run rustywind with a path and the --dry-run
to get a list of files that will be changed:
rustywind --dry-run .
For more options run help
rustywind --help
Inspired by Ryan Heybourn's headwind vscode plugin. This is a CLI tool that will look through your project and sort all Tailwind CSS classes.
It will also delete any duplicate classes it finds.
When Ryan released his vscode extension some people expressed an interest in having a CLI version.
In addition, I've had an interest in learning rust. I usually learn by doing. I thought this would be the perfect opportunity to make a small useful tool while learning rust.
Keep in mind this is my first rust project. My code here is most likely going to be ugly and not idiomatic rust. If you are a rust expert you're help in making the code nicer and more idiomatic will be greatly appreciated.
Any and all feedback and criticism is very welcome. If im doing anything stupid please let me know.
npm install rustywind -g
)
--write
option which will change the files, change default to printing results to the terminal--allow-duplicates
to allow duplicate class name--dry-run
option to print out all changes to console--customer-sorter=...
--custom-regex=...
[0.12.0] - 2021-06-13
ex: mt-0.5
FAQs
CLI for organizing Tailwind CSS classes
The npm package rustywind receives a total of 1,592 weekly downloads. As such, rustywind popularity was classified as popular.
We found that rustywind 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.
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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.