Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@shufo/tailwindcss-class-sorter
Advanced tools
A tailwindcss class sorter that respects tailwind config file
A tailwindcss class sorter that respects tailwind config file.
$ npm install @shufo/tailwindcss-class-sorter
# yarn
$ yarn add @shufo/tailwindcss-class-sorter
// CommonJS
const { sortClasses } = require("@shufo/tailwindcss-class-sorter");
const sorted = sortClasses("pt-2 p-4");
console.log(sorted);
// => "p-4 pt-2"
// ESModule
import { sortClasses } from "tailwindcss-class-sorter";
const sorted = sortClasses("pt-2 p-4");
tailwindcss-class-sorter
will automatically look for tailwind.config.js
in the project directory.
Then if it exists, it will sort according to the tailwindcss configuration. If it does not exist, the default sort order of tailwindcss plugin will be used.
classes
: classes string e.g. z-5 z-50
export interface IOption {
tailwindConfigPath?: string;
tailwindConfig?: TailwindConfig;
}
key | value |
---|---|
tailwindConfigPath | A path to tailwind config file |
tailwindConfig | A configuration object of tailwind config |
$ yarn install
$ yarn run test
$ yarn run benchmark
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)MIT
FAQs
A tailwindcss class sorter that respects tailwind config file
The npm package @shufo/tailwindcss-class-sorter receives a total of 15,854 weekly downloads. As such, @shufo/tailwindcss-class-sorter popularity was classified as popular.
We found that @shufo/tailwindcss-class-sorter 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.