
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
tailwindcss-formatter
Advanced tools
This Ruby Gem provides a CLI interface for effortlessly organising and formating Tailwind CSS class declarations in your HTML and ERB templates, following the recommended class order for cleaner and more maintainable code.
Install the gem and add it to the application's Gemfile by executing:
bundle add tailwindcss-formatter
If bundler is not being used to manage dependencies, install the gem by executing:
gem install tailwindcss-formatter
Once installed, you can run the formatter from the CLI to format your files. It runs
in dry mode by default, so you will need to specify the -w | --write
flag to have the
modifications written back to the files in place.
It takes a glob or file path as the first argument. If you leave this empty, it will
use the default, which is set up for a typical Rails project: "app/**/*.html.erb"
.
Example with glob pattern to match files:
tailwindcss-format "app/**/*.html.erb"
Example passing the --write
flag so the formatting is written to the files in place:
tailwindcss-format "app/**/*.html.erb" -w
-w | --write
Writes the formatted class strings back to the file in place.
-c | --check-formatted
Raises exit code 1 if unformatted class declarations are detected.
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow
you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a
new version, update the version number in version.rb
, and then run bundle exec rake release
,
which will create a git tag for the version, push git commits and the created tag, and push
the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/benbarber/tailwindcss-formatter.
FAQs
Unknown package
We found that tailwindcss-formatter 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.